Related articles |
---|
[3 earlier articles] |
Re: Templates in C++ shepherd@schubert.sbi.com (1995-05-12) |
Re: Templates in C++ norman@flaubert.bellcore.com (1995-05-14) |
Re: Templates in C++ davidm@flora.Rational.com (1995-05-16) |
Re: Templates in C++ jgmorris@cs.cmu.edu (Greg Morrisett) (1995-05-17) |
Re: Templates in C++ jplevyak@violet-femmes.cs.uiuc.edu (1995-05-17) |
Re: Templates in C++ bill@amber.ssd.hcsc.com (1995-05-25) |
Re: Templates in C++ kanze@gabi-soft.fr (1995-05-29) |
Re: Templates in C++ mac@coos.dartmouth.edu (1995-06-23) |
Re: Templates in C++ shankar@sgihub.corp.sgi.com (1995-06-25) |
Re: Templates in C++ bill@amber.ssd.hcsc.com (1995-06-30) |
Re: Templates in C++ collberg@cs.auckland.ac.nz (1995-07-12) |
Newsgroups: | comp.compilers |
From: | kanze@gabi-soft.fr (J. Kanze) |
Keywords: | C++, OOP |
Organization: | GABI Software, Sarl. |
References: | 95-05-081 95-05-125 |
Date: | Mon, 29 May 1995 08:08:19 GMT |
Status: | RO |
Greg Morrisett (jgmorris@cs.cmu.edu) wrote:
|> Furthermore, modern ML implementations, unlike C++, deal with issues
|> of true separate compilation. In particular, they do _not_ require
|> that you suck in your template definitions into each source file that
|> uses the template.
This is not required in C++, at least not in the implementation I'm
familiar with (Sun CC, both the old Cfront version, and the new native
code compiler). In fact, the current draft standard does *not* allow
this to be required.
What currently is required is that the sources for the template
implementation be somewhere accessible, since the implementation *will*
be dragged in at link time; linking a large system for the first time
will frequently be very slow, as all of the templates will be
instantiated and compiled. (People at Sun tell me that this is not the
case with the new compiler. I've yet to link a large application with
it to see.)
--
James Kanze (+33) 88 14 49 00 email: kanze@gabi-soft.fr
GABI Software, Sarl., 8 rue des Francs Bourgeois, 67000 Strasbourg, France
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.