scope() statements and return

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 3 21:28:56 PDT 2014


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

> It is tricky if the throw implies that the caller to the cleanup 
> should retry because of a timeout/deadlock
it shouldn't. exception during cleanup means "oh, i can't! i
really-really-really can't!", not "ok, i'm busy, try again later."

if some badly designed API does that -- write a wrapper.
-------------- 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/672f41bb/attachment.sig>


More information about the Digitalmars-d mailing list