← Back to index
|
Original Bugzilla link
Bug 12739 – Foreach delegate to opApply does not have infered nothrow
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-05-12T22:42:00Z
Last change time
2014-05-23T00:24:57Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
safety0ff.bugz
Comments
Comment #0
by safety0ff.bugz — 2014-05-12T22:42:18Z
This doesn't work: struct S { nothrow: int opApply(int delegate(ref int) nothrow dg) { return 0; } } void main() nothrow { S s; foreach (e; s) { } } But this does: struct S { nothrow: int opApply(int delegate(ref int) nothrow dg) { return 0; } } void main() nothrow { S s; s.opApply( (ref int x) { return 0; } ); }
Comment #1
by k.hara.pg — 2014-05-21T14:10:44Z
https://github.com/D-Programming-Language/dmd/pull/3565
Comment #2
by github-bugzilla — 2014-05-22T23:17:54Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/b645e9ea533649d7b0765c9198dab1abae323adb
fix Issue 12739 - Foreach delegate to opApply does not have infered nothrow
https://github.com/D-Programming-Language/dmd/commit/e0ff7054acb48d106c2ace5856df1c4a212ca5cf
Merge pull request #3565 from 9rnsr/fix12739 Issue 12739 - Foreach delegate to opApply does not have infered nothrow
Comment #3
by github-bugzilla — 2014-05-23T00:24:57Z
Commits pushed to master at
https://github.com/D-Programming-Language/druntime
https://github.com/D-Programming-Language/druntime/commit/f5d3f42316cf38a6c267cf625e94ded45aea9f6b
Remove Bug #12739 work arounds.
https://github.com/D-Programming-Language/druntime/commit/b7c965e94b8751fc8aecd6f156c398f051ee2651
Merge pull request #802 from Safety0ff/rmwrkrnd12739 Remove Bug #12739 work arounds.