scope() statements and return

monarch_dodra via Digitalmars-d digitalmars-d at puremagic.com
Tue Oct 7 00:36:54 PDT 2014


On Monday, 6 October 2014 at 16:59:35 UTC, Andrei Alexandrescu 
wrote:
> Whenever an exception is converted to a string, the chained 
> exceptions should be part of it too.

On Monday, 6 October 2014 at 17:12:00 UTC, Jakob Ovrum wrote:
> However, the whole point is implicit chaining, which is where 
> the language and runtime kicks in. Look through your own 
> scope(exit|failure) blocks and struct destructors - are they 
> all nothrow?
>
> If not, you are using exception chaining.

Hum... But arguably, that's just exception chaining "happening". 
Do you have any examples of someone actually "dealing" with all 
the exceptions in a chain in a catch, or actually using the 
information in a manner that is more than just printing?


More information about the Digitalmars-d mailing list