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,5c8c86891defe3dc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-12 15:39:43 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!newspeer.clara.net!news.clara.net!diablo.theplanet.net!news.theplanet.net!not-for-mail From: bt_are_shite@talk21.com (Stella) Newsgroups: comp.lang.ada Subject: Re: Newbie Q : Exception handling Date: Wed, 12 Dec 2001 23:40:20 GMT Organization: yes Message-ID: <3c17e9ef.40026565@news.freeserve.net> References: <3c035fe0.7469961@news.freeserve.net> <3C050DB2.4C327C3D@boeing.com> Reply-To: bt_are_shite@talk21.com NNTP-Posting-Host: modem-160.arcanine.dialup.pol.co.uk X-Trace: news5.svr.pol.co.uk 1008200381 5602 217.135.21.160 (12 Dec 2001 23:39:41 GMT) NNTP-Posting-Date: 12 Dec 2001 23:39:41 GMT X-Complaints-To: abuse@theplanet.net X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:17869 Date: 2001-12-12T23:39:41+00:00 List-Id: On Fri, 30 Nov 2001 13:39:10 -0500, "Matthew Heaney" wrote: > >"Jeffrey Carter" wrote in message >news:3C050DB2.4C327C3D@boeing.com... >> Others have suggested adding Skip_Line. This will work, but I generally >> advise using Get_Line to input an entire line, then decode it Get, when >> the input comes from a human. > >I agree with this advice completely. It's too easy to forget to call >Skip_Line when there's a problem with the input, resulting in an infinite >loop. > >As Jeff suggested, use Get_Line to read in the raw text, and then get the >enum value by using the version of Get that reads from a string. > >This technique also allows you to pass meta-values as input, such as "first" >or "last" or "exit", etc. > > > Thanks, much nicer... Stella