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!news3.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!news.tele.dk!news.tele.dk!small.news.tele.dk!fi.sn.net!newsfeed2.fi.sn.net!news.song.fi!not-for-mail Date: Tue, 27 Jul 2010 17:10:16 +0300 From: Tero Koskinen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Thunderbird/3.0.5 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Sharing generic bodies across instantiations. References: <4c4e2d69$0$2378$4d3efbfe@news.sover.net> <87d3u9yxgp.fsf@ludovic-brenta.org> In-Reply-To: <87d3u9yxgp.fsf@ludovic-brenta.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4c4ee8c8$0$4096$7b1e8fa0@news.nbl.fi> Organization: NBL Networks Oy NNTP-Posting-Host: 217.30.184.161 X-Trace: 1280239816 news.nbl.fi 4096 217.30.184.161:35646 X-Complaints-To: abuse@nblnetworks.fi Xref: g2news1.google.com comp.lang.ada:12606 Date: 2010-07-27T17:10:16+03:00 List-Id: On 07/27/2010 02:29 PM, Ludovic Brenta wrote: > AdaMagica writes: >> As far as I understand, GNAT replicates, RR shares generic code. >> (Don't know about IBM (former Rational).) > > My understanding is similar; indeed, Janus/Ada is the only compiler that > shares generics. Unfortunately, no compiler offers the option to > choose; this is an implementation decision. If I have understood correctly, Irvine's Ada compiler supports shared generics *and* provides a compile time option for this. On the other hand, Janus/Ada doesn't provide an option. With it, shared generics are always used. -Tero