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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8520d8902b684d8a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail From: "Anh Vo" Newsgroups: comp.lang.ada Subject: Re: Extended Return Statement with exception Date: 23 Nov 2005 06:36:38 -0800 Organization: http://groups.google.com Message-ID: <1132756598.546702.183810@o13g2000cwo.googlegroups.com> References: <1132687889.831797.109510@o13g2000cwo.googlegroups.com> <1132714194.300770.290480@z14g2000cwz.googlegroups.com> <4384352e$0$27882$9b4e6d93@newsread4.arcor-online.net> NNTP-Posting-Host: 69.232.209.118 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1132756603 22717 127.0.0.1 (23 Nov 2005 14:36:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 23 Nov 2005 14:36:43 +0000 (UTC) In-Reply-To: <4384352e$0$27882$9b4e6d93@newsread4.arcor-online.net> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: o13g2000cwo.googlegroups.com; posting-host=69.232.209.118; posting-account=JVr7Xg0AAAAI3MbuARxMmvWLmA7qdJMx Xref: g2news1.google.com comp.lang.ada:6558 Date: 2005-11-23T06:36:38-08:00 List-Id: Yes, that is exactly what I was thinking of. In this case, exception handler within an extended return statement does have value. Thanks Georg AV Georg Bauhaus wrote: > Anh Vo wrote: > > I get it. Thanks. There is one more question though. It seems to me > > that an exception handler within an extended return statement do not > > have much value because it can not contain a nested return statement? > > Can't you write > > function Foo return Character is > begin > return C: Character do > C := Fail; > exception > when Some_Error => C := Default_Char; > end return; > end Foo;