scope() statements and return

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Sun Oct 5 08:02:56 PDT 2014


On Sun, 05 Oct 2014 14:53:37 +0000
monarch_dodra via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> Promises hold provided the precondition your program is in a 
> valid state. Having an Error invalidates that precondition, hence 
> voids that promise.
so Error should not be catchable and should crash immidiately, without
any unwinding. as long as Errors are just another kind of exception,
the promise must be kept.
-------------- 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/9670a07e/attachment-0001.sig>


More information about the Digitalmars-d mailing list