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,88c174f3c455ecdc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-07 01:24:49 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!ailinel.cbb-automation.DE!not-for-mail From: dmitry@elros.cbb-automation.de (Dmitry Kazakov) Newsgroups: comp.lang.ada Subject: Re: Thoughts on the ADaOS user program interface Date: Fri, 07 Sep 2001 08:24:48 GMT Message-ID: <3b98827b.3305921@news.cis.dfn.de> References: <9n8eks$qsp$1@shell.monmouth.com> NNTP-Posting-Host: ailinel.cbb-automation.de (212.79.194.99) X-Trace: fu-berlin.de 999851088 6070269 212.79.194.99 (16 [77047]) X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:12869 Date: 2001-09-07T08:24:48+00:00 List-Id: On 6 Sep 2001 14:18:04 -0400, ka@sorry.no.email (Kenneth Almquist) wrote: >(Note: In addition to the use suggested here, pragma Separate_Tag >would improve the performance of types like Ada.Strings.Unbounded, >where a tagged type is required but the tag is rarely used. When this >pragma is applied to a type, it is not possible to redispatch in the >primitive subprograms for that type, because that would require using >the tag in a context where there is no class-wide pointer to the >object.) Not only that. If tag is separate, one could make *all* types tagged. Class-wide values would consist of tag + specific value. Pointers to class-wides would be tag + pointer to a specific value. This way one could make Boolean, Integer etc tagged and most of type attributes ['Value, 'Image ...] dispatching. Sorry for off-topic, but I could not resist (:-)) Regards, Dmitry Kazakov