🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Q: gcc 2.7.1: Aufruf einer Konstruktormethode aus einer anderen

#1637
From: Watson
Date: Tue, 13 Feb 1996 15:46
27 lines
1015 bytes
Hallo,

wie kann ich ich eine Konstruktormethode aus
einer anderen Konstruktormethode aufrufen, 
ohne dass gleich ein neues Objekt instanziiert
wird?

Beispiel:

class C {
	C() { 
		...
		C(tmpnam(NULL));	// das ist falsch,
					// so weit bin ich schon :-)
		...
	}

	C(char *string) {
		...
	}
}

Antwort bitte - auch - als PM, Danke,
-- 
*	Greetinx from Watson (sayegh@fokus.gmd.de)
	http://www.fokus.gmd.de/ovma/employees/sayegh/entry.html
	signal(SIGSEGV,SIG_IGN);
Technical Details
Message-ID: <3120B25C.2650@fokus.gmd.de>
Path: arc1-ca.pugleaf.net!stern.fokus.gmd.de!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!stern.fokus.gmd.de!news
From: Watson <sayegh@fokus.gmd.de>
Newsgroups: de.comp.lang.c++
Subject: Q: gcc 2.7.1: Aufruf einer Konstruktormethode aus einer anderen
Date: Tue, 13 Feb 1996 16:46:36 +0100
Organization: GMD FOKUS - Research Institute for Open Communication Systems
Message-ID: <3120B25C.2650@fokus.gmd.de>
NNTP-Posting-Host: pollux.fokus.gmd.de
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-2
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)