scope() statements and return

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 2 21:52:13 PDT 2014


On Fri, 03 Oct 2014 04:40:53 +0000
deadalnix via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> The throw thing is rather stupid, as the scope statement can call 
> arbitrary function that can itself throw.
that's why you'd better use collectException() there, i presume. ;-)

btw: shouldn't compiler check and reject code that calls no-nothrow
functions in scope(...)? bug/ER?
-------------- 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/20141003/f8e0ff0b/attachment.sig>


More information about the Digitalmars-d mailing list