🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #211

constructor call during initialization of same class

#211
From: Stefano Casadei
Date: Sun, 23 Aug 1992 03:03
10 lines
794 bytes
Is it possible to define a class constructor which invokes another
constructor of the same class during the initialization phase (i.e. between
the : and the body) ? If not, why is such a simple feature not implemented
in the language ?

Please reply also to: casadei@cesena.mit.edu

Thanks.

Stefano
Technical Details
Message-ID: <1992Aug23.030355.23047@athena.mit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!bloom-beacon!bloom-picayune.mit.edu!verona.mit.edu!casadei

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help,comp.lang.c++,comp.std.c++
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!bloom-beacon!bloom-picayune.mit.edu!verona.mit.edu!casadei
From: casadei@verona.mit.edu (Stefano Casadei)
Subject: constructor call during initialization of same class
Message-ID: <1992Aug23.030355.23047@athena.mit.edu>
Sender: news@athena.mit.edu (News system)
Nntp-Posting-Host: verona.mit.edu
Organization: Massachusetts Institute of Technology
Date: Sun, 23 Aug 1992 03:03:55 GMT
Lines: 10