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-Thread: 103376,c0d427d5f4af20f8 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail From: "REH" Newsgroups: comp.lang.ada Subject: Re: generics in Ada 83 Date: 20 Sep 2005 05:36:48 -0700 Organization: http://groups.google.com Message-ID: <1127219808.860316.155590@z14g2000cwz.googlegroups.com> References: <1126617980.932226.320710@g43g2000cwa.googlegroups.com> <1126703715.202970.293880@g47g2000cwa.googlegroups.com> <1126711381.425805.248380@o13g2000cwo.googlegroups.com> <1127152708.824683.290990@g47g2000cwa.googlegroups.com> NNTP-Posting-Host: 192.35.35.35 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1127219813 9592 127.0.0.1 (20 Sep 2005 12:36:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 20 Sep 2005 12:36:53 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=192.35.35.35; posting-account=lnUIyw0AAACoRB2fMF2SFTIilm8F10q2 Xref: g2news1.google.com comp.lang.ada:4951 Date: 2005-09-20T05:36:48-07:00 List-Id: Hyman Rosen wrote: > REH wrote: > > That has got to be the best argument I have ever seem for Ada generics. > > Do remember, as has been frequently discussed here, that C++ templates > let you do things like define dimensioned objects that require zero > runtime overhead in either time or space and implicitly instantiate > themselves only for the units actually needed. This is far beyond what > Ada generics can do. The whole area of template metaprogramming is > unavailable to Ada as well. Oh, I'm still a big fan of templates. I do a lot of template metaprogramming, myself. It is a very powerful tool.