scope() statements and return

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Sun Oct 5 05:36:18 PDT 2014


On Sun, 05 Oct 2014 11:28:59 +0000
monarch_dodra via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> In theory, you should seldom ever catch Errors. I don't 
> understand why "scope(exit)" are catching them.
'cause scope(exit) keeps the promise to execute cleanup code before
exiting code block?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141005/224dde76/attachment.sig>


More information about the Digitalmars-d mailing list