scope() statements and return

via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 6 04:32:53 PDT 2014


On Monday, 6 October 2014 at 07:28:22 UTC, Walter Bright wrote:
> FWIW, I'm skeptical as well of the value of chaining relative 
> to its cost in complexity.

Python 3 has two fields: "__cause__" and "__context__".

The cause field is used for explicit chaining on re-throws. Can 
be useful for diagnostics and is trouble free.

The context field is used for preserving exceptions that are 
unfortunately overruled by subsequent throws. Which can lead to 
missed clean-up handling. :-/


More information about the Digitalmars-d mailing list