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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cbb87dd49168c396 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-30 16:30:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!solaris.cc.vt.edu!news.vt.edu!msunews!not-for-mail From: "Chad R. Meiners" Newsgroups: comp.lang.ada Subject: Re: Get_Line Date: Wed, 30 Oct 2002 19:26:32 -0500 Organization: Michigan State University Message-ID: References: <3DBF3659.30709@acm.org> <4dRv9.46453$wm6.7691@nwrddc01.gnilink.net> <3DC0204E.4050203@acm.org> Reply-To: "Chad R. Meiners" NNTP-Posting-Host: arctic.cse.msu.edu X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.lang.ada:30242 Date: 2002-10-30T19:26:32-05:00 List-Id: "Robert A Duff" wrote in message news:wcc3cqn35wu.fsf@shell01.TheWorld.com... > But isn't the *real* problem that the design of Text_IO is broken? For > example, why is there no Get_Line function: > > function Get_Line(...) return String; > > that returns the entire contents of the next line, no matter how long it > is, and without fussing about with fixed-length (i.e. wrong length!) > buffers? I wouldn't say broken. Do you really want Ada.Text_IO to contain functions with side-effects? Put_Line (Get_Line & Get_Line); -- Do you want to encourage this in the standard? -CRM