== Quote from bearophile (bearophileh...@lycos.com)'s article > Sean Eskapp: > > It was recommended to me to use structs for RAII instead of scope classes, > > since scope is being removed (?). However, since default-constructors for > > structs can't exist, how does one do this? > Inside the ~this() you may put code, to deallocate resources you have > allocated in an explicit constructor (or in some creation method). Is this enough? > Bye, > bearophile
By explicit constructor, I assume you mean one with parameters? I guess that's alright.