From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,7d14d8f47ca035bf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-02 13:58:05 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!fr.usenet-edu.net!usenet-edu.net!proxad.net!feeder2.proxad.net!nnrp5.proxad.net.POSTED!not-for-mail Message-ID: <3AC8E799.189EE51C@bigfoot.com> From: Francois Godme X-Mailer: Mozilla 4.75 [fr] (X11; U; Linux 2.2.16-22 i586) X-Accept-Language: fr-FR, en-US, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada Generic vs. C++ Templates References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: Mon, 02 Apr 2001 20:57:02 GMT NNTP-Posting-Host: 213.228.24.229 X-Complaints-To: abuse@proxad.net X-Trace: nnrp5.proxad.net 986245022 213.228.24.229 (Mon, 02 Apr 2001 22:57:02 CEST) NNTP-Posting-Date: Mon, 02 Apr 2001 22:57:02 CEST Organization: Guest of ProXad - France Xref: supernews.google.com comp.lang.ada:6376 Date: 2001-04-02T20:57:02+00:00 List-Id: Ted Dennison a �crit : > One thing you should be sure to mention is portability. All Ada compilers must > adhere to (and are tested against) the same standard. In contrast, C++ compilers > all seem to implement templates differently. The Mozilla developers have gone so > far as to ban the use of templates for this reason (in fact, its rule #1 in > their portability guide). See > http://www.mozilla.org/hacking/portable-cpp.html#dont_use_templates . One could > say that for code meant to be portable, C++ templates have no power at all, as > they can't be used. :-) For Ada supporters, it may be reassuring to rest on those somewhat outdated statements but templates are working by now because they are central to the implementation of the C++ Standard Templates Library (STL for short). In my daily work, we develop C++ templates code which compiles and runs the same on two different platforms namely Visual C++ 6.0 on NT and aCC on HP-UX. I am not saying that all the implementations are perfect but that they are mature enough to be of a practical use in a commercial environment.