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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!fdn.fr!feeder.erje.net!1.eu.feeder.erje.net!news.unit0.net!gandalf.srv.welterde.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Comparing Access Types Date: Wed, 15 Nov 2017 19:17:46 -0600 Organization: JSA Research & Innovation Message-ID: References: Injection-Date: Thu, 16 Nov 2017 01:17:47 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="16597"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: feeder.eternal-september.org comp.lang.ada:48928 Date: 2017-11-15T19:17:46-06:00 List-Id: "Robert A Duff" wrote in message news:wccinei14g6.fsf@TheWorld.com... >I wrote: > >> If "=" lies, then the Ada implementation is simply wrong. > > There were more than one Ada compiler for the 8086, > and I'm pretty sure "=" on access values worked > properly. It's really not hard to get it right -- in > fact I think the compiler would have to go out of > it's way to get it wrong. I doubt that. It wouldn't have worked "right" in Janus/Ada, for instance, we just did a binary comparison. So C000:DEAD /= CDEA:000D even though they pointed at the same physical memory. But you could only run into that if you converted a System.Address into an access value; it would never happen within a correctly running Ada program so we didn't want to pay the extra cost of doing it perfectly right. (Same reason that I'd never waste time [mine or a programs] making zero-size objects work *right* in this sense.) Randy.