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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b14a804025dceb20 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-10-30 08:40:30 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsengine.sol.net!homer.alpha.net!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <8ti9lp$7se$1@nnrp1.deja.com> <39FD65FB.388A05D0@acm.org> Subject: Re: Constructors/Destructors in Ada95 X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 Message-ID: Date: Mon, 30 Oct 2000 10:39:06 -0600 NNTP-Posting-Host: 156.46.62.124 X-Complaints-To: abuse@alpha.net X-Trace: homer.alpha.net 972924020 156.46.62.124 (Mon, 30 Oct 2000 10:40:20 CST) NNTP-Posting-Date: Mon, 30 Oct 2000 10:40:20 CST Xref: supernews.google.com comp.lang.ada:1634 Date: 2000-10-30T10:39:06-06:00 List-Id: Marin David Condic wrote in message <39FD65FB.388A05D0@acm.org>... >rwilson007007@my-deja.com wrote: > >Very clever! However, at least one issue would be raised. A generic >instanciation of My_Class_Name would result in a duplication of the object >code associated with My_Class_Name for every object of that class you >declare. This is at least true of every Ada compiler of which I am aware. >I don't know if anybody supports code sharing for generics on a currently >marketed Ada95 compiler. Janus/Ada 95 still uses "universal" code sharing for generics. There is only one copy of the code for each generic unit; the instantiation provides parameters. I believe that there are other compilers that allow partial sharing in limited instances. Truth in advertising dept.: Janus/Ada 95 is not a complete implementation of Ada 95 (a few parts are missing; notably to this discussion, generic formal derived types). I don't know if there are any reasons why our implementation cannot implement those part not yet implemented (haven't found any yet, but...) I am a primary author of that compiler, and still owrk at rrsoftware. (Our web site is www.rrsoftware.com, if you care). Randy Brukardt.