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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.85.8 with SMTP id j8mr6670704iob.35.1510330947989; Fri, 10 Nov 2017 08:22:27 -0800 (PST) X-Received: by 10.157.0.7 with SMTP id 7mr393538ota.14.1510330947917; Fri, 10 Nov 2017 08:22:27 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!weretis.net!feeder4.news.weretis.net!news.roellig-ltd.de!open-news-network.org!peer02.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!l196no138204itl.0!news-out.google.com!193ni3065iti.0!nntp.google.com!l196no138202itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 10 Nov 2017 08:22:27 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=173.71.208.22; posting-account=QF6XPQoAAABce2NyPxxDAaKdAkN6RgAf NNTP-Posting-Host: 173.71.208.22 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0981102e-a656-43e5-8216-f18bf7cfd650@googlegroups.com> Subject: Re: Comparing Access Types From: Jere Injection-Date: Fri, 10 Nov 2017 16:22:27 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Body-CRC: 1785266970 X-Received-Bytes: 2633 Xref: feeder.eternal-september.org comp.lang.ada:48808 Date: 2017-11-10T08:22:27-08:00 List-Id: On Friday, November 10, 2017 at 11:00:17 AM UTC-5, Robert A Duff wrote: > Jere writes: > > > I'm not hugely in disagreement here, but I am curious as to why it doesn't > > make sense. > > What would it mean? If X /= Y, then X < Y returns either True > or False arbitrarily? That could work, but it doesn't seem all > that useful. > > If a garbage collector is moving things around in memory, > then it would be hard to implement efficiently. Ok, that makes sense. The use case I had was more for keys in a map. I didn't really care about the actual order, but wanted a way to store a collection of objects using the access types as the key. That would allow for quick searching in large groups. With the incomplete type formal parameter, I was having trouble coming up with options. However, I don't have to implement it that way. Dmitry comments gave me some ideas. I can either push that off to the client in a different way or add more formal parameters to my generic to support it if I want. > > > For debugging purposes, I do wish there was a way for me to get a printable > > unique value for access types. > > Unchecked convert to type Integer_Address, then use 'Image. > > - Bob Thanks! This worked. I can use that in my debug package.