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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7ae711c481a7059 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-06 15:40:17 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!news-out.visi.com!hermes.visi.com!newsfeed.news2me.com!newsfeed-west.nntpserver.com!hub1.meganetnews.com!nntpserver.com!telocity-west!TELOCITY!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Can I treat Current_Output as a file of bytes? Date: Wed, 6 Nov 2002 17:40:56 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <20021104233454.2042ef78.bjorn_persson.spam-is-evil@sverige.nu> <4519e058.0211050630.7eb31354@posting.google.com> <20021105170130.2684e53f.bjorn_persson.spam-is-evil@sverige.nu> <4519e058.0211051427.48557033@posting.google.com> X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:30491 Date: 2002-11-06T17:40:56-06:00 List-Id: Ted Dennison wrote in message <4519e058.0211051427.48557033@posting.google.com>... >Bj rn Persson wrote in message news:<20021105170130.2684e53f.bjorn_persson.spam-is-evil@sverige.nu>... >> On 5 Nov 2002 06:30:59 -0800 >> dennison@telepath.com (Ted Dennison) wrote: >> > Supposedly, that's what Ada.Text_IO.Text_Streams is there for (see >> >> Hmm, I didn't try that because I assumed that it would write through the >> usual Standard_Output, and so the line break would be added anyways, but >> maybe I should give it a try. > >That's my worry too. Tell us how it works. :-) I would be very surprised if a compiler implementer went out of their way to add stuff there that OS does not add. In this case, neither Windows nor Unix adds any line breaks to standard output, so why would an Ada compiler? (If you're not using Windows or Unix, your mileage may vary, but you probably don't have a standard output in the first place...) Of course, the ability of compiler implementers to do odd things should never be underestimated. There is the case of the compiler that raises Storage_Error for certain null string literals, for instance. So do test it carefully, but I'd expect it to work. Randy Brukardt.