quote:Original post by SabreManquote:Original post by Sneftel
Another half-witted comment from a half-witted AP. "delete this" is completely legal syntax (though not what is required here).
True. Glaring typo aside, the syntax is legal, but the technique is immoral. What happens if the object is auto? What about references to the object - how do they know the object is `dead''?
It''s a limited technique, but occasionally a useful one. The few times I''ve used it, the following things have been true:
1. The class is a private inner class of another class.
2. The class has a private constructor.
#1 means that you can avoid having references when you don''t want them, since you have full control over when stuff will be used. #2 means that you never have to worry about stack objects.
How appropriate. You fight like a cow.