comp.lang.ada
 help / color / mirror / Atom feed
From: bt_are_shite@talk21.com (Stella)
Subject: Re: Newbie Q : Exception handling
Date: Wed, 12 Dec 2001 23:40:20 GMT
Date: 2001-12-12T23:39:41+00:00	[thread overview]
Message-ID: <3c17e9ef.40026565@news.freeserve.net> (raw)
In-Reply-To: u0fkbcsi85ntd8@corp.supernews.com

On Fri, 30 Nov 2001 13:39:10 -0500, "Matthew Heaney" <mheaney@on2.com>
wrote:

>
>"Jeffrey Carter" <jeffrey.carter@boeing.com> 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



  reply	other threads:[~2001-12-12 23:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-27 10:04 Newbie Q : Exception handling Stella
2001-11-28  3:13 ` DuckE
2001-11-28  3:31   ` Stella
2001-11-28 16:15 ` Jeffrey Carter
2001-11-30 18:39   ` Matthew Heaney
2001-12-12 23:40     ` Stella [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-11-28  8:36 Gautier Write-only-address
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox