structs vs classes
Tomek Sowiński
just at ask.me
Sat Jan 29 10:19:42 PST 2011
Matthias Walter napisał:
> That is of course a difference, but no argument. The reason is that you
> can decide whether you want to allocate a class on the stack:
>
> http://www.digitalmars.com/d/2.0/memory.html#stackclass
AFAIR scope classes are to be banished from the language. There's emplace instead.
http://digitalmars.com/d/2.0/phobos/std_conv.html#emplace
--
Tomek
More information about the Digitalmars-d
mailing list