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: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Q: setting an address with pure? Date: Thu, 16 Jul 2015 19:54:54 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="0b8a1d07de517ba95be21a60d7133ef5"; logging-data="10865"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kGU69bf5FntcdXuEWWwfGz/ZPK/Poc5w=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:+XGEiJPSB9ZcBhvkjVW4O5T7hE4= sha1:2PBM8oAsMsNC6R0SeabgJOJYOug= Xref: news.eternal-september.org comp.lang.ada:26829 Date: 2015-07-16T19:54:54+01:00 List-Id: Brian Drummond writes: >> That's why the above statements work in AVR-Ada and probably in MSP-Ada >> >> Rolf > > Ah! Well if that is permitted by the LRM (and obviously, only for > targets where it is valid) it certainly makes life easier! > > I think it's a reasonable decision, since these packages are > explicitly not portable to any other target (where System.Address > could be something else) anyway. See also pragma Allow_Integer_Address[1] - not sure whether it's reached publicly accessible compilers yet. [1] http://docs.adacore.com/gnat_rm-docs/html/gnat_rm/gnat_rm/implementation_defined_pragmas.html#pragma-allow-integer-address