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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,103b407e8b68350b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-10 05:51:17 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!dialin-145-254-040-081.arcor-ip.NET!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Anybody in US using ADA ? One silly idea.. Date: Fri, 10 Jan 2003 14:51:48 +0100 Organization: At home Message-ID: References: <1041908422.928308@master.nyc.kbcfp.com> <1041997309.165001@master.nyc.kbcfp.com> <1042086217.253468@master.nyc.kbcfp.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: dialin-145-254-040-081.arcor-ip.net (145.254.40.81) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: fu-berlin.de 1042206675 17337445 145.254.40.81 (16 [77047]) User-Agent: KNode/0.7.1 Xref: archiver1.google.com comp.lang.ada:32882 Date: 2003-01-10T14:51:48+01:00 List-Id: Hyman Rosen wrote: > Dmitry A. Kazakov wrote: >> But this is not generics vs. tagged, it is inlined vs. not. It is clear >> that an inlined subroutine cannot be put into a library. The difference >> is only that tagged types leave me a choice, while generics don't. > > The inlining in question here is bits of your new object's code > getting inlined into the library code, rather than the usual > direction of inlining library code into your code. While you > are not wrong in the abstract, the facts of implementations are > that libraries which receive tagged types on which to operate > are shipped as compiled binaries, and the opportunities to > inline are simply not there. I agree. As I said, it is a long way to go to get rid of generics. -- Regards, Dmitry A. Kazakov www.dmitry-kazakov.de