🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Andrew Koenig Fri, 02 May 1986 19:19
Re: Initializing objects on the heap
#178
Author: 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);

?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads