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!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Examining individual bytes of an integer Date: Mon, 15 Oct 2018 10:02:29 +0100 Organization: A noiseless patient Spider Message-ID: References: <9d90fa3e-f800-4086-bf97-a65474a8140a@googlegroups.com> <4f2fb3ba-9cca-46ad-b970-ccbcb7d08a2c@googlegroups.com> <7e2c9d2a-b0c8-4ca1-ac3b-7909cd834dff@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="da8580838aa05a08cfb2548df7377043"; logging-data="27673"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/L6y1JawsUduoaHY+Ua3AQc5ipqxoyiDk=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:Qc+tN8T9yiTLPmmwpMvmgZJiObU= sha1:5H0TXOHDSI2gLQwd01pL3rLYOBs= Xref: reader02.eternal-september.org comp.lang.ada:54581 Date: 2018-10-15T10:02:29+01:00 List-Id: Matt Borchers writes: > This may require two additional lines after the type declarations: > 1) for Byte'Size use 8; > 2) for Word'Size use 32; > > I'm not sure if those would be necessary, but I think so. Or you could use the types in Interfaces, where this is done already. Those types are intended for exactly this job.