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!news.wiretrip.org!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: 26 Nov 2004 22:47:34 +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 1101509665 16555 62.49.19.209 (26 Nov 2004 22:54:25 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Fri, 26 Nov 2004 22:54:25 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: g2news1.google.com comp.lang.ada:6530 Date: 2004-11-26T22:47:34+00:00 List-Id: "Warren W. Gay VE3WWG" writes: > I am not concerned at all about the efficiency of this case, as you > read the partition 4 times at boot time (less if you have fewer > disks). I know however, that you were stating the more general > case. > > It is disappointing to learn that basically Ada95 is "portability > busted" when it comes to Ada.Streams. As Randy (I think) mentioned > in the AI link, it is very difficult to adapt a stream to external > formats - more impossible to be compiler independent at the same > time. Since I am trying to interface a stream to the boot sector, > this becomes a real problem that I'll have to "work around". 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). If those conditions are met, you have what looks like a more convenient way of expressing representations. Otherwise, it'll have to be the hard way .. I must say it wouldn't have occurred to me to expect a Stream to meet your requirements. But we progress by meeting needs, and someone has to express them! -- Simon Wright 100% Ada, no bugs.