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.6 required=5.0 tests=BAYES_00,LOTS_OF_MONEY, TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8c424d8135e68278 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-12 11:41:31 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <9v4jsj$bd1$1@infosun2.rus.uni-stuttgart.de> <9v7f26$qn2$1@infosun2.rus.uni-stuttgart.de> <3C1754BA.C4560423@informatik.uni-jena.de> <9v7q8r$1f5$1@infosun2.rus.uni-stuttgart.de> Subject: Re: Ada2005 Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Wed, 12 Dec 2001 14:41:12 EST Organization: http://www.newsranger.com Date: Wed, 12 Dec 2001 19:41:12 GMT Xref: archiver1.google.com comp.lang.ada:17861 Date: 2001-12-12T19:41:12+00:00 List-Id: In article , Mark Lundquist says... > >There you go. Although I think in practice it wouldn't find as much use as >the unbounded version. You usually don't do just one Get_Line... :-). That's not really a problem. This is just a case where you are taking several succesive string values, so the proper idiom would be to use several successive string objects: loop declare Line : constant String := Ada.Text_IO.Get_Line; begin -- process line exit when Line = "Quit"; -- or whatever end; end loop; --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced.