From: David Trudgett <wpower@zeta.org.au.nospamplease>
Subject: Re: Handling exceptions -- hiding exceptions from calling code
Date: Sun, 07 Aug 2005 19:20:54 +1000
Date: 2005-08-07T19:20:54+10:00 [thread overview]
Message-ID: <m3br4ahzm1.fsf@rr.trudgett> (raw)
In-Reply-To: I7mdnZ2dnZ1Hx5GKnZ2dnbslaN-dnZ2dRVn-zp2dnZ0@comcast.com
tmoran@acm.org writes:
> loop
> begin
> Get(Move);
> exit;
> exception
> when ...
> put("...");
> skip_line; -- toss any other garbage on that bad line
> end;
> end loop;
> skip_line; -- on to the next thing
>
>>because of the scope for infinite recursion:
> only if your user has infinite stubborness.
Yes, indeed! ;-)
Thanks very much for that. It worked nicely! Adding an enclosing block
is obviously the key here.
David
--
David Trudgett
http://www.zeta.org.au/~wpower/
No one is given a map to their dreams
All we can do is to trace it.
See where we go to, know where we've been
Build up the courage to face it.
-- Sandy Denny
prev parent reply other threads:[~2005-08-07 9:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-07 7:08 Handling exceptions -- hiding exceptions from calling code David Trudgett
2005-08-07 7:28 ` tmoran
2005-08-07 9:20 ` David Trudgett [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox