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.

Reply via email to