Hiding class pointers -- was it a good idea?
Sean Kelly
sean at f4.ca
Wed Aug 15 12:48:02 PDT 2007
Deewiant wrote:
>
> What I like about C++ is that "new" means "allocate on the heap". In D, you have
> to add "unless storing as 'scope'".
I'm not sure I agree. Stack allocation from the presence of "scope" is
a QOI issue, it's not guaranteed in the spec. All "scope" really says
is "destroy what this reference refers to when the reference goes out of
scope."
Sean
More information about the Digitalmars-d
mailing list