← Back to index
|
Original Bugzilla link
Bug 16240 – std.exception.enforce should be nothrow when throwing errors
Status
NEW
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-07-06T13:16:21Z
Last change time
2024-12-01T16:27:23Z
Assigned to
No Owner
Creator
Jack Stouffer
Depends on
12647
Moved to GitHub: phobos#10187 →
Comments
Comment #0
by jack — 2016-07-06T13:16:21Z
void test() nothrow { import std.exception : enforce; import core.exception : RangeError; // this line doesn't compile // enforce!RangeError(false); version(assert) if (false) throw new RangeError(); } void main() { test(); }
Comment #1
by robert.schadek — 2024-12-01T16:27:23Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/phobos/issues/10187
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB