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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e18b90266d1f7532 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!newscon06.news.prodigy.com!prodigy.net!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news1.optus.net.au!optus!newsfeeder.syd.optusnet.com.au!news.optusnet.com.au!newsfeed.pacific.net.au!nasal.pacific.net.au!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Handling exceptions -- hiding exceptions from calling code From: David Trudgett Organization: Very little? References: Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:dL6viFLoKnszPbPyX5meIaiQWic= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 07 Aug 2005 19:20:54 +1000 NNTP-Posting-Host: 61.8.41.3 X-Complaints-To: news@pacific.net.au X-Trace: nasal.pacific.net.au 1123406711 61.8.41.3 (Sun, 07 Aug 2005 19:25:11 EST) NNTP-Posting-Date: Sun, 07 Aug 2005 19:25:11 EST Xref: g2news1.google.com comp.lang.ada:4013 Date: 2005-08-07T19:20:54+10:00 List-Id: 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