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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7d14d8f47ca035bf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-02 07:40:06 PST Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.stanford.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison Sender: usenet@www.newsranger.com References: Subject: Re: Ada Generic vs. C++ Templates Message-ID: Date: Mon, 02 Apr 2001 14:38:18 GMT NNTP-Posting-Host: 209.208.22.130 X-Complaints-To: abuse@newsranger.com X-Trace: www.newsranger.com 986222298 209.208.22.130 (Mon, 02 Apr 2001 10:38:18 EDT) NNTP-Posting-Date: Mon, 02 Apr 2001 10:38:18 EDT Organization: http://www.newsranger.com Xref: supernews.google.com comp.lang.ada:6347 Date: 2001-04-02T14:38:18+00:00 List-Id: In article , Josef Widder says... > >As project for university i'd like to compare the power of the Ada >Generic construct relative to C++ templates. > >Could someone please tell me where to find good articles on the generic >construct ? 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. :-) --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com