From: Jeffrey Carter <jeffrey.carter@boeing.com>
Subject: Re: Newbie Q : Exception handling
Date: Wed, 28 Nov 2001 16:15:46 GMT
Date: 2001-11-28T16:15:46+00:00 [thread overview]
Message-ID: <3C050DB2.4C327C3D@boeing.com> (raw)
In-Reply-To: 3c035fe0.7469961@news.freeserve.net
If you read carefully the description of what Enumeration_IO.Get does,
you'll see that it looks at the digit but doesn't remove it from the
buffer, so the following Get encounters it again, resulting in an
infinite loop.
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.
--
Jeffrey Carter
next prev parent reply other threads:[~2001-11-28 16:15 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 [this message]
2001-11-30 18:39 ` Matthew Heaney
2001-12-12 23:40 ` Stella
-- 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