move object from heap to stack
Namespace
rswhite4 at googlemail.com
Wed Sep 19 14:37:50 PDT 2012
I count it to destroy it if it isn't used anymore.
I can remove this behaviour but IMO with this you haven't
unnecessary use of stack memory. Am I wrong?
Furthermore, if I copy the stack object e.g. if I pass it as
value parameter to another function/class, I can store it as long
as it's needed. Maybe that should be the task of the heap, but
I'm not sure.
More information about the Digitalmars-d-learn
mailing list