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

Yuxuan Shui <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from Yuxuan Shui <[email protected]> ---
(In reply to Mathias LANG from comment #1)
> This is UB, according to
> http://dlang.org/spec/statement.html#ScopeGuardStatement
> 
> > A scope(exit) or scope(success) statement may not exit with a throw, goto, 
> > break, continue, or return; nor may it be entered with a goto.

I don't think it make sense to forbid exiting scope block with a throw. Plus it
totally works barring a few bugs not specific to it.

--

Reply via email to