custom memory management

Namespace rswhite4 at googlemail.com
Thu Feb 27 14:04:49 PST 2014


A struct is a value type. So it is passed by value and is placed 
on the stack.

{
     S s;
}

S DTor is called at the end of the scope. So you can rely on RAII 
as long as you use structs.


More information about the Digitalmars-d-learn mailing list