🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2361

Re: Template Instantiation

#2361
From: David Vandevoorde
Date: Mon, 30 Oct 1995 16:06
27 lines
1729 bytes
>>>>> "JM" == Jason Merrill <jason@cygnus.com> writes:
>>>>> David Vandevoorde <vandevod@cs.rpi.edu> writes:
>> I believe it is implicit in the semantic descriptions throughout
>> the DWP.  For functions (member or not), they should only be
>> instantiated if they are called. The only exception are virtual
>> functions: they can be instantiated if the class to which they
>> belong is instantiated.

JM> What if their address is taken?  What if they are called in a
JM> sizeof expression?  What about static data members?

Oops, my apologies. I answered slopilly.
Address taken 
	-> instantiation.
sizeof(expression with function call) 
	-> no instantiation of the function, I think (but e.g. of
	   its return type).

By ``static data members'', were you refering to the elided part
of my post?

	Daveed


[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <VANDEVOD.95Oct30092843@avs.cs.rpi.edu>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
References: <9510272025.AA09665@absoft.absoft.com> <VANDEVOD.95Oct29114646@avs.cs.rpi.edu> <u9ohuzocqp.fsf@yorick.cygnus.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
From: vandevod@cs.rpi.edu (David Vandevoorde)
Newsgroups: comp.std.c++
Subject: Re: Template Instantiation
Date: 30 Oct 1995 16:06:50 GMT
Organization: RPI Computer Science
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <VANDEVOD.95Oct30092843@avs.cs.rpi.edu>
References: <9510272025.AA09665@absoft.absoft.com> <VANDEVOD.95Oct29114646@avs.cs.rpi.edu>
 <u9ohuzocqp.fsf@yorick.cygnus.com>
NNTP-Posting-Host: taumet.eng.sun.com
Content-Type: text
X-Nntp-Posting-Host: avs.cs.rpi.edu
In-Reply-To: jason@cygnus.com's message of 30 Oct 95 10:59:01 GMT
Content-Length: 808
X-Lines: 23
Originator: clamage@taumet