scope(exit) without exception handling?

Mehrdad wfunction at hotmail.com
Tue May 15 20:54:04 PDT 2012


I'm writing some (low-level) code with no exception handling 
available whatsoever... either the code runs, or it doesn't.

Is there any way for me to use scope(exit) (or perhaps a 
destructor, like RAII) to mean, "Execute this block of code for 
me when the block is exited, will ya?", *without* introducing 
dependencies on exception handling?


More information about the Digitalmars-d mailing list