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-7-bit X-Google-Thread: 103376,7d14d8f47ca035bf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-05 01:48:04 PST Path: supernews.google.com!sn-xit-03!supernews.com!hermes2.visi.com!news-out.visi.com!news-out.visi.com!hermes.visi.com!news.tele.dk!193.251.151.101!opentransit.net!proxad.net!feeder2.proxad.net!nnrp5.proxad.net.POSTED!not-for-mail Message-ID: <3ACC3053.51FC316A@free.fr> From: Jean-Marc Bourguet X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en, French, fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada Generic vs. C++ Templates References: <9af7aa$5io$1@a1-hrz.uni-duisburg.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 05 Apr 2001 08:46:27 GMT NNTP-Posting-Host: 158.140.208.29 X-Complaints-To: abuse@proxad.net X-Trace: nnrp5.proxad.net 986460387 158.140.208.29 (Thu, 05 Apr 2001 10:46:27 CEST) NNTP-Posting-Date: Thu, 05 Apr 2001 10:46:27 CEST Organization: Guest of ProXad - France Xref: supernews.google.com comp.lang.ada:6499 Date: 2001-04-05T08:46:27+00:00 List-Id: Georg Bauhaus wrote: > > Josef Widder (e9625114@student.tuwien.ac.at) wrote: > : As project for university i'd like to compare the power of the Ada > : Generic construct relative to C++ templates. I see only two differences related to the expressive power of these constructs: * In C++ template may be specialized; this allow choices to be made at compile time according to the arguments and recursive templates and that brings the template construct to a complete language evaluated at compile time. * In Ada, a generic package may be instanciated with the same arguments several times. Yours, -- Jean-Marc