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!news1.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!panix!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Sharing generic bodies across instantiations. Date: Tue, 03 Aug 2010 10:31:43 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <4c4e2d69$0$2378$4d3efbfe@news.sover.net> <4c4f5c28$0$2375$4d3efbfe@news.sover.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1280845888 30725 192.74.137.71 (3 Aug 2010 14:31:28 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 3 Aug 2010 14:31:28 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:iscPBCVciG5LEy+hZ2IH9a8WG1c= Xref: g2news1.google.com comp.lang.ada:12827 Date: 2010-08-03T10:31:43-04:00 List-Id: "Randy Brukardt" writes: > I have been very vigilant to preserve the ability for generic sharing in the > Ada Standard. (It's something that would be very easy to lose because of > some obscure combination of features.) I can't say for sure that I have kept > every such case out of the Standard, but there is agreement that at least > limited sharing (when the parameters are "similar enough") ought to be a > permitted implementation. "Universal sharing" (where there only one body for > each generic), as used in Janus/Ada, is more controversal (but is still > allowed by Ada 2005). Like Randy, I am in favor of retaining the ability to share generic body code (universal or otherwise) in Ada. I am not in favor of trying to make universal sharing efficient at run time -- that's not possible. It's a trade-off -- it may make compile time faster, at the expense of run time. It is not feasible to share generic spec code. - Bob