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-Thread: 103376,1ea59bb198e88f9f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed.bit.nl!newsfeed.bit.nl!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNAT Ada.Streams Bug? Date: 27 Nov 2004 17:25:40 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1101576751 20275 62.49.19.209 (27 Nov 2004 17:32:31 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 27 Nov 2004 17:32:31 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: g2news1.google.com comp.lang.ada:6555 Date: 2004-11-27T17:25:40+00:00 List-Id: "Warren W. Gay VE3WWG" writes: > Simon Wright wrote: > > So the AI lets you make the streaming portable provided that > > everything is a multiple of Stream_Element'Size (and, I guess, all the > > participants are of the same endianness). > > I suppose I have always considered everything to be a multiple of > Stream_Element'Size anyway. But you are right in that you could have > types in odd bitwise sizes. My expectations were set lower than > yours ;-) Someone decided that all ethernet messages in our system should have a header so he could debug at the network level, then decided to squash all the bits in as tightly as possible so (I suppose) as to save space. Even more fun when you need XDR versions .. not expectations so much as bitter experience. -- Simon Wright 100% Ada, no bugs.