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!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Ada package registry? Date: Fri, 5 Feb 2016 23:09:25 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <02241ec4-0f95-4f63-9abc-092f167eb59e@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Sat, 6 Feb 2016 06:06:36 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="caa759af2a9c666aec02942f6fe5abd6"; logging-data="11932"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+T+CCG6CFq7UKV6fqJuozSTSByJQWQQsE=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: Cancel-Lock: sha1:23a0ZOy7NDH9EJiJ3df94gwVvk4= X-Enigmail-Draft-Status: N1110 Xref: news.eternal-september.org comp.lang.ada:29376 Date: 2016-02-05T23:09:25-07:00 List-Id: On 02/05/2016 06:25 PM, Randy Brukardt wrote: > > [What I mean by expressing assumptions is that it's unlikely that any real > Ada code would really run anywhere. I've been having fun with Gautier over > his "unconditional portability" claim, as one only needs a single > counter-example to disprove the claim. After a few obvious problems with the > choices of Janus/Ada were worked out, I pointed out that his types wouldn't > work on our old U2200 compiler (as that was a 1's completement, 36-bit > machine). He decided quite reasonably not to worry about that, but that > means in his case, that means his code is "unconditionally portable" so long > as your target supports 32-bit integers and is 2's complement. That might be > 99% of machines, but its not quite unconditional.] Wasn't that an Ada-83 compiler? And isn't he trying for portability across Ada-95 compilers? If you had an Ada-95 compiler for that machine, what would be the problem with type U is mod 2 ** 32; for U'Size use 32; type S is range -(2 ** 31) .. (2 ** 31) - 1; for S'Size use 32; ? (I guess in Ada 83 you could do type U is range 0 .. (2 ** 32) - 1; for U'Size use 32; There'd be plenty of room in the base type for the corresponding negative values, unlike a 32-bit machine.) -- Jeff Carter "We burst our pimples at you." Monty Python & the Holy Grail 16