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,e93f73587e2bc1c3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!m1g2000vbh.googlegroups.com!not-for-mail From: Martin Newsgroups: comp.lang.ada Subject: Re: Sharing generic bodies across instantiations. Date: Tue, 27 Jul 2010 03:51:59 -0700 (PDT) Organization: http://groups.google.com Message-ID: <954ebf3e-0661-4832-beba-d00650daddcd@m1g2000vbh.googlegroups.com> References: <4c4e2d69$0$2378$4d3efbfe@news.sover.net> NNTP-Posting-Host: 20.133.0.8 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1280227919 25703 127.0.0.1 (27 Jul 2010 10:51:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 27 Jul 2010 10:51:59 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m1g2000vbh.googlegroups.com; posting-host=20.133.0.8; posting-account=g4n69woAAACHKbpceNrvOhHWViIbdQ9G User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.7) Gecko/20100701 Firefox/3.6.7,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:12601 Date: 2010-07-27T03:51:59-07:00 List-Id: On 27 July, 01:51, "Peter C. Chapin" wrote: > It has been my understanding that Ada's generics are designed in such a > way as to allow implementations to share the code of a generic body > across all the instantiations. I understand that doing this might > involve a performance penalty relative to creating independent code for > each instantiation. However, I can see that there are cases where such > sharing would be desirable. > > Is my understanding still accurate (was it ever accurate), for example > even with Ada 2005? > > Thanks! > > Peter Allowed yes, required no. -- Martin