🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c++
Article #178

Re: Initializing objects on the heap

#178
From: Andrew Koenig
Date: Fri, 02 May 1986 19:19
11 lines
686 bytes
> The only way I know to put an initialized object onto the heap is:

> foo * fp = new foo;
> foo f ( init );
> *fp = init;

Can't you say:

	foo * fp = new foo (init);

?
Technical Details
Message-ID: <5382@alice.uUCp>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!alice!ark

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site alice.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!alice!ark
From: ark@alice.UucP (Andrew Koenig)
Newsgroups: net.lang.c++
Subject: Re: Initializing objects on the heap
Message-ID: <5382@alice.uUCp>
Date: Fri, 2-May-86 15:19:22 EDT
Article-I.D.: alice.5382
Posted: Fri May  2 15:19:22 1986
Date-Received: Sat, 3-May-86 20:17:28 EDT
Organization: Bell Labs, Murray Hill
Lines: 11