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.
In reply to Re^2: code to get the first line of an array
by pg
in thread code to get the first line of an array
by s_gaurav1091
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |