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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,38159b1b5557a2e7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-26 19:34:20 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Endian-Independent Rep Clauses References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <%_kRb.28888$zj7.11003@newsread1.news.pas.earthlink.net> Date: Tue, 27 Jan 2004 03:34:19 GMT NNTP-Posting-Host: 63.184.17.57 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1075174459 63.184.17.57 (Mon, 26 Jan 2004 19:34:19 PST) NNTP-Posting-Date: Mon, 26 Jan 2004 19:34:19 PST Xref: archiver1.google.com comp.lang.ada:4872 Date: 2004-01-27T03:34:19+00:00 List-Id: Stephen Leake wrote: > > Here's a real-life example: > > package SAL.Endianness is > Bit_Order : constant := 1; -- 1 or -1 > High_Bit_First : constant := 0; -- 0 or 1 > Low_Bit_First : constant := 1; -- opposite of High_Bit_First Derive these from System.Default_Bit_Order. I generally like to predefine a collection of useful bit numbers as well. -- Jeff Carter "Beyond 100,000 lines of code you should probably be coding in Ada." P. J. Plauger 26