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 17:03:39 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newspeer.radix.net!uunet!ash.uu.net!world!news From: Robert A Duff Subject: Re: Dispatching and generics - language lawyer question Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Wed, 14 Aug 2002 00:02:49 GMT References: NNTP-Posting-Host: shell01.theworld.com Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:27996 Date: 2002-08-14T00:02:49+00:00 List-Id: "Randy Brukardt" writes: > 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). Good point. If a slice is passed as a parameter, the bounds ought to be passed separately from the pointer-to-data. In Ada 83, I suppose one could always copy slices, but in Ada 95, some types require pass by reference. Including a slice of one of those. - Bob