Topic: Why is "this" a pointer, not a reference? [was: NULL "this


Author: "John Hickin" <hickin@nortelnetworks.com>
Date: Wed, 4 Oct 2000 06:23:53 GMT
Raw View
Francis Glassborow wrote:
>

> >OK. I give up.  In what sense is "this" not a pointer?
>
> In the sense that it is more akin to a reference in semantics, though it
> has the syntax of a pointer.
>

Note, however, that in the _bad old days_ assignment to the this pointer
was allowed because class operators new/delete had not yet been added to
the language.


Regards, John.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]
[ Note that the FAQ URL has changed!  Please update your bookmarks.     ]