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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,7ae711c481a7059 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-08 12:54:25 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!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: Fri, 8 Nov 2002 14:34:58 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <20021104233454.2042ef78.bjorn_persson.spam-is-evil@sverige.nu> <20021108010337.395c1a90.bjorn_persson.spam-is-evil@sverige.nu> <8qGdDEJ$BoYu@eisner.encompasserve.org> 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:30611 Date: 2002-11-08T14:34:58-06:00 List-Id: Larry Kilgallen wrote in message <8qGdDEJ$BoYu@eisner.encompasserve.org>... >In article <20021108010337.395c1a90.bjorn_persson.spam-is-evil@sverige.nu>, Bj�rn Persson writes: > >> I don't think Text_IO's design is a problem in itself. It can be >> quite useful when working with text files. The problem is that the >> standard input and output streams are defined to be text files. The >> programmer should be allowed to decide whether Text_IO or >> Sequential_IO is most appropriate. > >On VMS you would just open a Sequential_IO file for output saying the >name is SYS$OUTPUT. Isn't the same thing available on other operating >systmes ? Not that I know of. Janus/Ada provides names for standard input and output as part of the file management in the Ada runtime. (They're "Stdin:" and "Stdout:" on Windows, and "/dev/stdin" and "/dev/stdout" on Unix. Those names are never passed to the operating system.) But, of course using those names is not portable to other Ada compilers. Randy.