scope() statements and return

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 3 22:54:06 PDT 2014


On Sat, 04 Oct 2014 05:37:14 +0000
Ola Fosheim Grostad via Digitalmars-d <digitalmars-d at puremagic.com>
wrote:

> Why should these two cases be treated different? Makes no sense,
'cause `MyWrapper` promises to nothrow. you can't make such promise for
try-block.

i.e. `MyWrapper` promises that the only exception that can be thrown is
`LovelyException`, and it's catched, thus `MyWrapper` is marked
"nothrow". you can't attach such mark to try/catch, even if you know
for sure that you catched 'em all. it's a matter of style.
-------------- 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/20141004/a87f2347/attachment.sig>


More information about the Digitalmars-d mailing list