scope() statements and return

Shammah Chancellor via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 3 22:04:37 PDT 2014


On 2014-10-03 20:18:44 +0000, David Nadlinger said:

> 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

They do.



More information about the Digitalmars-d mailing list