Article View: comp.std.c++
Article #754Re: The concept of templates considered ill designed
From: David (Lujun) Shang
Date: Tue, 06 Oct 1992 00:55
Date: Tue, 06 Oct 1992 00:55
23 lines
1502 bytes
1502 bytes
In article <23796@alice.att.com> ark@alice.att.com (Andrew Koenig) writes: > In article <BvM0DE.EA7@watcgl.uwaterloo.ca> pfbertra@watcgl.uwaterloo.ca (Philippe F. Bertrand) writes: > > > Also for code hiding, compilers should generate intermediate files for > > templated code so that user's of a template class do not need to have > > access to the source. > > This is primarily an implementation issue, not alnaugae issue. > If enough people want compilers that behave that way, someone will > create one. > -- > --Andrew Koenig > ark@europa.att.com It is not only an implementation issue, but aslo a language design issue. The key thing is that WHY template users NEED to have the access to the template source. Such need comes from the template itself, not from any particular implementation. If the concept of template is not improved in language design, it is impossible to write a compiler that can hide the template source code from the user. David Shang
Technical Details
Message-ID:
<1992Oct6.005550.10906@cadsun.corp.mot.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!panther!mothost!motsrd!newsReferences:
<23796@alice.att.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++,comp.lang.c++ Path: arc1-ca.pugleaf.net!sparky!uunet!panther!mothost!motsrd!news From: shang@corp.mot.com (David (Lujun) Shang) Subject: Re: The concept of templates considered ill designed Message-ID: <1992Oct6.005550.10906@cadsun.corp.mot.com> Sender: news@cadsun.corp.mot.com Reply-To: shang@corp.mot.com Organization: Motorola, Inc., Software Research and Development, Rolling Meadows, IL. 60008 References: <23796@alice.att.com> Date: Tue, 6 Oct 92 00:55:50 GMT Lines: 24