in reply to Re: code to get the first line of an array
in thread code to get the first line of an array
That statement hit me too. As far as most people are concerned, a destructor should deallocate all the resources an object owns (in a loose sense, not strictly an OO object, here I consider an array as an object).
shift obviously does not meet that criteria, it is just a usual method.
|
|---|