🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Defining members of class T within cla

#1684
From: James Kanze US/ESC 60/3/141 #407...
Date: Wed, 09 Aug 1995 08:44
36 lines
2605 bytes
In article <40834p$lm3@engnews2.Eng.Sun.COM> clamage@Eng.Sun.COM
(Steve Clamage) writes:

|> Adding a module system to C++ would make it generally easier to use,
|> particularly for large projects, but would also make it a different language.
|> Stroustrup elected not to go that route in designing and developing C++, and
|> the C++ committee also elected not to go that route.

|> The committee felt it had more than enough work to do without adding
|> another huge pile of work. Figuring out a module system, or some subset
|> that would ease separation of interface and implementation, would take
|> years of experimentation in addition to all the work that has been done
|> and is still being done on the standard. For example, the template rules
|> were published in the ARM in 1990. The rules are still being worked on
|> as new problems with the definition of templates are discovered.

|> I'd like to suggest that someone take the time to define and implement
|> something like a module system for C++. To gain wide acceptance, it should
|> allow existing C++ source and object code to be integrated into Modular C++
|> (if I may coin the term) without modification, as well as provide the same C
|> compatibility as C++ currently has. When you are done, submit it for the next
|> round of C++ standardization. The timing should be about right.

It's too late now, but I wonder if having a module system of some sort
wouldn't have made the template problem easier.

I suppose that the problem Bjarne faced was that doing generic classes
with #define is an even greater pain than doing separate compilation
with textual inclusion.  So the interest in having templates was
greater.  (If you really want to go batty, try implementing the ideas
in Barton and Nackman on a compiler which doesn't support templates.)
-- 
James Kanze         Tel.: (+33) 88 14 49 00        email: kanze@gabi-soft.fr
GABI Software, Sarl., 8 rue des Francs-Bourgeois, F-67000 Strasbourg, France
Conseils en informatique industrielle --
                              -- Beratung in industrieller Datenverarbeitung
Technical Details
Message-ID: <KANZE.95Aug9104442@slsvhdt.lts.sel.alcatel.de>
Path: arc1-ca.pugleaf.net!xlink.net!slsv6bt!news
References: <1995Aug8.102431.1427@ittpub> <40834p$lm3@engnews2.Eng.Sun.COM>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++
Path: arc1-ca.pugleaf.net!xlink.net!slsv6bt!news
From: kanze@lts.sel.alcatel.de (James Kanze US/ESC 60/3/141 #40763)
Subject: Re: Defining members of class T within cla
In-Reply-To: clamage@Eng.Sun.COM's message of 8 Aug 1995 16:24:57 GMT
Message-ID: <KANZE.95Aug9104442@slsvhdt.lts.sel.alcatel.de>
Sender: news@lts.sel.alcatel.de
Organization: SEL
References: <1995Aug8.102431.1427@ittpub> <40834p$lm3@engnews2.Eng.Sun.COM>
Date: 09 Aug 1995 08:44:42 GMT