www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24676] New: Allow break and continue in

https://issues.dlang.org/show_bug.cgi?id=24676

          Issue ID: 24676
           Summary: Allow break and continue in
                    scope(exit/failure/success)
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: qs.il.paperinik gmail.com

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.

--
Jul 23