🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.lang.c++
Article #577

Gueltigkeitsbereich des this-Pointers

#577
From: Roman 'RoB' Bartke
Date: Sun, 15 Oct 1995 10:56
20 lines
1018 bytes
In den neueren g++-Versionen kann man im Konstruktor den eigenen
this-Pointer an neu zu erzeugende Instanzen anderer Klassen übergeben:

class B;

class C
{
	B* b;
public:
	C() { b=new B(this); }
[...]
}

Soweit ich mich erinnere, ging ss bei früheren Versionen nicht immer.

Was sieht da der Standard (oder die Vorstufe) vor? 

-- 
  eMail: rob@robot.mayn.de; rob@informatik.uni-wuerzburg.de          PGP on
 whoami: main(i){putchar(471252544>>i*5&31|!!(i%6)<<6)&&main(++i);}  demand
Technical Details
Message-ID: <45qpdo$t2d@robot.mayn.de>
Path: arc1-ca.pugleaf.net!robot.mayn.de!not-for-mail

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!robot.mayn.de!not-for-mail
From: rob@robot.mayn.de (Roman 'RoB' Bartke)
Newsgroups: de.comp.lang.c++
Subject: Gueltigkeitsbereich des this-Pointers
Date: 15 Oct 1995 11:56:56 +0100
Organization: RoBot
Message-ID: <45qpdo$t2d@robot.mayn.de>
NNTP-Posting-Host: robot.mayn.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Copyright: No distribution outside "Usenet news" without prior permission from the author.
X-Newsreader: STRN v0.9.3.1pre