auto storage class - infer or RAII?
Lionello Lunesu
lio at lunesu.remove.com
Mon Nov 13 02:46:33 PST 2006
Carlos Santander wrote:
> Also keep in mind that your option #5 (auto c = Class()) doesn't seem to
> be a popular proposal (based on what has been said in the ng).
I for one would like it!
It's much closer to C++. It hides the "new" and eventually might even be
changed to allocate memory using the stack instead of the heap. It will
be incompatible with static opCall (which I find hackish anyway) so
people will probably ask for a way to add constructors to structs.
L.
More information about the Digitalmars-d
mailing list