🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Suresh Vaidyanathan Fri, 04 Aug 1995 18:13
Initialization Question
#1596
Author: Suresh Vaidyanathan
Date: Fri, 04 Aug 1995 18:13
10 lines
600 bytes
Sometime ago, someone posted an example where the following
syntax for initialization:

	T some_t(Initial_Value);

would not work, and you were forced to use the other technique:

	T some_t = Initial_Value;

Can someone (not necessarily the same one) please repost this!
Re: Initialization Question
#1602
Author: Jason Merrill
Date: Fri, 04 Aug 1995 21:02
17 lines
1021 bytes
>>>>> Suresh Vaidyanathan <suresh@bird.printrak.com> writes:

> Sometime ago, someone posted an example where the following
> syntax for initialization:

> 	T some_t(Initial_Value);

> would not work, and you were forced to use the other technique:

> 	T some_t = Initial_Value;

> Can someone (not necessarily the same one) please repost this!

A a(A()); // declares a function taking and returning A
A a = A(A()); // declares an object

Jason
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