Bug 24676 – Allow break and continue in scope(exit/failure/success)

Status
NEW
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-07-23T14:43:59Z
Last change time
2024-12-13T19:36:39Z
Assigned to
No Owner
Creator
Bolpat
Moved to GitHub: dmd#18260 →

Comments

Comment #0 by qs.il.paperinik — 2024-07-23T14:43:59Z
There is no good reason why `scope` statements can’t contain `break` and `continue` statements. The lowering absolutely supports these. Also, `goto` should be allowed. Cf. Issue 24460.
Comment #1 by robert.schadek — 2024-12-13T19:36:39Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18260 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB