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,8d5bda3619cce0f8 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!news-out.readnews.com!transit4.readnews.com!panix!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: C getchar() functionality in Ada Date: Tue, 17 Feb 2009 18:44:02 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <4999ce31$0$90266$14726298@news.sunsite.dk> <3apeng.mtg.ln@hunter.axlog.fr> <499b1430$0$90267$14726298@news.sunsite.dk> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1234914242 20894 192.74.137.71 (17 Feb 2009 23:44:02 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 17 Feb 2009 23:44:02 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:mnfKRF815fo4tYZBpsY28OhQ6vU= X-Original-Bytes: 1664 Xref: g2news2.google.com comp.lang.ada:4657 Date: 2009-02-17T18:44:02-05:00 List-Id: Hyman Rosen writes: > Thomas Locke wrote: >> But I understand what you're saying: No end of line characters in Ada! ^^^^^^ ...in Ada.Text_IO. >> Except perhaps when using Get_Immediate and Look_Ahead? > > The Ada design has the same error here as Pascal did. ^^^^^^^^^^ ...Ada.Text_IO design... Text_IO is a bit broken, I agree. But you can also use streams, or you can interface directly to the underlying OS primitives. Ada has a lot of strengths, but unfortunately, the design of the Ada.Text_IO package is not one of them. - Bob