TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: AUKE REITSMA
from: TOM TORFS
date: 1998-02-03 23:34:00
subject: this

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.