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=-0.8 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f25e636d6b770960 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-27 07:34:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: Erik Sigra Newsgroups: comp.lang.ada Subject: Re: Last stream problem: byte order Date: Wed, 27 Mar 2002 16:37:49 +0100 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <3CA04CA6.338B37D7@ib-paus.com> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: avanie.enst.fr 1017243242 19708 137.194.161.2 (27 Mar 2002 15:34:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 27 Mar 2002 15:34:02 +0000 (UTC) Return-Path: X-Mailer: KMail [version 1.3.2] In-Reply-To: <3CA04CA6.338B37D7@ib-paus.com> Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk X-Reply-To: sigra@home.se List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:21724 Date: 2002-03-27T16:37:49+01:00 tisdagen den 26 mars 2002 11.25 skrev du: > If you also check the byte order of your system at runtime (there is a > system constant in Ada which you can check) you can even achieve the effect > that all stream data is always written in network byte order independent of > the platform your program is running on. Why runtime check? Compile time check seems more reasonable to me. Or can the same compiled program really run on architectures with different endiannes?