scope() statements and return
David Nadlinger via Digitalmars-d
digitalmars-d at puremagic.com
Fri Oct 3 13:18:44 PDT 2014
On Friday, 3 October 2014 at 17:50:29 UTC, Andrei Alexandrescu
wrote:
> On 10/2/14, 8:23 PM, Ali Çehreli wrote:
>> "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."
>
> Seems to me all these restrictions should be lifted. -- Andrei
Unless we have very good reason, the same restrictions as for
finally blocks (i.e. the actual lowering) should apply.
David
More information about the Digitalmars-d
mailing list