scope() statements and return

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 6 19:25:30 PDT 2014


On Monday, 6 October 2014 at 13:48:07 UTC, Andrei Alexandrescu
wrote:
> It's one of those designs in which there's little room to turn. 
> We wanted to (a) allow destructors to throw, (b) conserve 
> information. Offering access to all exceptions caught was a 
> natural consequence. -- Andrei

Note that if we reverse the chaining (like java does), then the
loop problem mostly disappear. It is still possible to create it,
you you got to actively look for it.


More information about the Digitalmars-d mailing list