Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!brutus.cs.uiuc.edu!apple!agate!helios.ee.lbl.gov!ncis.tis.llnl.gov!lll-winken!arisia!sgi!shinobu!odin!delrey!shap From: shap@delrey.sgi.com (Jonathan Shapiro) Newsgroups: comp.lang.c++ Subject: Re: calling constructor (again) Message-ID: <1085@odin.SGI.COM> Date: 24 Oct 89 22:37:45 GMT References: <1989Oct13.175853.24335@polyslo.CalPoly.EDU> Sender: news@odin.SGI.COM Distribution: usa Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 16 In article <1989Oct13.175853.24335@polyslo.CalPoly.EDU> ttwang@polyslo.CalPoly.EDU (Thomas Wang) writes: >I still have not solved the problem of directly calling the constructor. > ... > >The proper sequence must be: create space, register with reference, call >object constructor. In C++2.0: Try overloading operator new() to call ::new to get the space, do the registration, and return, after which the constructor will get called for you. Jonathan S. Shapiro Synergistic Computing Associates