On Sat, 04 Oct 2014 04:47:44 +0000
deadalnix via Digitalmars-d <digitalmars-d@puremagic.com> wrote:

> Write this in sepeareted scope statement?. problem solved.
i don't agree. it makes excessive noise for nothing. and it breaking
the implied promise "all cleanup code will be executed on exit". it's
easy to miss something that can throw in scope(...). so the only other
option is to write this noisy code:

  scope(exit) firstCall();
  scope(exit) secondCall();
  scope(exit) thirdCall();

...and so on. and double-check if everything was really executed --
just in case. 'cause there is no promise to execute cleanup code
anymore.

Attachment: signature.asc
Description: PGP signature

Reply via email to