destructor, postblit constructor --- force calling always

Carl Sturtivant sturtivant at gmail.com
Sun Mar 30 12:35:00 PDT 2014


Context: struct values that are (non-ref) parameters & local 
variables.

Is there a way to arrange that a particular struct's special 
constructors (postblit,destructor) should always be called even 
on move, or on destruction of a default initialized value, 
temporary or not, etcetera, i.e. ensure they should always be 
called?

Is a struct's destructor always called when it goes out of scope, 
even if it is default initialized?



More information about the Digitalmars-d-learn mailing list