Possible duplicate:Why & & lsquo; this & rsquo; is a pointer, not a link?
Hey guys,
Is there a good reason that this is a pointer instead of a reference in C ++?
this
This concept was introduced before the conceptual concept. At that time, this was supposed to be a pointer. A source
From FAQ Stroustrup
http://www2.research.att.com/~bs/bs_faq2.html#this
As crazy as it sounds, it is really legal to delete this; . Sometimes it is even justified, but very rare.
delete this;