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: a07f3367d7,865c3d125a8dbc3b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Howto read line from a stream Date: Mon, 1 Jun 2009 18:34:03 -0500 Organization: Jacob Sparre Andersen Message-ID: References: <83317a97-dae5-4c84-a1ac-88a87833cf3f@q14g2000vbn.googlegroups.com> <03bab021-0df6-445b-b2f7-7a3ab770448c@b1g2000vbc.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1243899269 31778 69.95.181.76 (1 Jun 2009 23:34:29 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 1 Jun 2009 23:34:29 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Xref: g2news2.google.com comp.lang.ada:6169 Date: 2009-06-01T18:34:03-05:00 List-Id: "sjw" wrote in message news:03bab021-0df6-445b-b2f7-7a3ab770448c@b1g2000vbc.googlegroups.com... On May 31, 12:34 pm, "Dmitry A. Kazakov" wrote: >> One potential problem with using Streams as an interface to sockets is >> that >> there is nothing in the Ada standard that mandates Stream_Element to be >> an >> octet of bits, as socket I/O demands. > >Can't imagine what reason an implementer would have to make a stream >element anything other than an octet! (for any general-purpose >processor you'd actually be likely to come across). Our U2200 compiler used Stream_Element'Size = 9, as that was the native character size on that machine (36-bit words). Using 'Size = 8 would have required horrific code to access elements. I don't think there are many modern machines that would be other than 8, however. (And socket I/O probably used 9-bit bytes on that machine as well, although I don't remember the details anymore.) Randy.