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,18f7f6e041b3e0bf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-13 15:51:37 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Dispatching and generics - language lawyer question Date: Tue, 13 Aug 2002 17:50:28 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:27991 Date: 2002-08-13T17:50:28-05:00 List-Id: Robert A Duff wrote in message ... Bon Duff wrote: >Note that the distinction between (1) and (2) is analogous to the >compiler storing array bounds with the array, or with pointers to the >array. Neither one is uniformly better. I believe GNAT allows a user >choice, and I think all other compilers store bounds with the array >(analogous to (1)). Janus/Ada actually does neither -- the bounds are stored separately, and belong to neither. (The memory used is allocated separately if needed.) Indeed, I don't think you can store the bounds with the array for slices, so I think your analogy is incorrect (there is nothing like slices for tagged types, of course). Randy.