Auke Reitsma wrote in a message to Tom Torfs:
RS>> What is the scoop with this? BC++ 3.1 tells me it's
RS>> obsolete. Is that correct?
TT> The "this" pointer obsolete ? That would sure break a large
TT> percentage of my (admittedly not so many) C++ programs. How else
TT> are you supposed to obtain a pointer to your class instance ?
AR> 'this' is not obsolete. 'assigment to this' may be. ICOCW as I've
AR> not looked at C++ for some time ...
I've had a look at the BC++ 3.0 help and indeed, this is what it says about
"this":
+==========================================+
| Use of "this" is now obsolete. A better, |
| safer, and more general technique is to |
| define a member function called |
| |
| x::operator new |
| |
| instead. |
+==========================================+
I have no idea what they are talking about. Would anyone care to explain ?
greetings,
Tom
tomtorfs@village.uunet.be
--- timEd/2 1.10+
---------------
* Origin: 80X86 BBS 32-15-24.62.32 V.34/V.FC (24h/24h) (2:292/516)
|