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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4eb39f748fcf3a97 X-Google-Attributes: gid103376,public From: dewar@gnat.com Subject: Re: endian-independent rep clauses (was Re: GNAT Opinions) Date: 1998/12/28 Message-ID: <7673la$oj0$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 426332895 References: <75rj7i$2cq$1@nnrp1.dejanews.com> <75rvnq$h75@dfw-ixnews10.ix.netcom.com> <75tr9e$3h8$1@remarQ.com> <760d41$p6r$1@nnrp1.dejanews.com> <7667t3$3kj$1@remarQ.com> X-Http-Proxy: 1.0 x1.dejanews.com:80 (Squid/1.1.22) for client 166.72.71.106 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Dec 28 05:06:51 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1998-12-28T00:00:00+00:00 List-Id: In article <7667t3$3kj$1@remarQ.com>, "Pat Rogers" wrote: > dewarr@my-dejanews.com wrote in message > >Consider one of the most fundamental, which > >is that you have an external data stream that produces a > >big endian integer as four consecutive bytes in > >big-endian order. There is no magic rep clause to cause > >a compiler on a little-endian machine to acquire this > >data "correctly". Indeed the difficulty may vary from > >machine to machine, on some machines a quite long and > >tedious sequence of instructions may be required to > >reassemble the data. > > I answer with more than a little trepidation, knowing > that you are capable of arguing one side to "victory" > only to then switch and > argue the other side! :-) Well I should hope so, if you can't argue both sides of a technical issue, it must mean you don't understand the issue and therefore should not argue on either side :-) > Seriously, I would consider the above to be a separate > problem, since indeed a record rep clause will not handle > it. It does what Norm said it does, and nothing more. Yes, and seriously, that *is* the problem. Most people when they ask about this problem, and in particular when they ask about overriding the default bit order are after a solution for this "separate problem"! Robert Dewar Ada Core Technologies -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own