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,8520d8902b684d8a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!newsfeed.stueberl.de!uucp.gnuu.de!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Wed, 23 Nov 2005 10:24:10 +0100 From: Georg Bauhaus Organization: future apps GmbH User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050927 Debian/1.7.8-1sarge3 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Extended Return Statement with exception References: <1132687889.831797.109510@o13g2000cwo.googlegroups.com> <1132714194.300770.290480@z14g2000cwz.googlegroups.com> In-Reply-To: <1132714194.300770.290480@z14g2000cwz.googlegroups.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4384352e$0$27882$9b4e6d93@newsread4.arcor-online.net> NNTP-Posting-Date: 23 Nov 2005 10:23:58 MET NNTP-Posting-Host: 5b4c3df5.newsread4.arcor-online.net X-Trace: DXC=YYG_4h5FNoU\ODPOkW97AZ:ejgIfPPldTjW\KbG]kaMXFYk:AnJB[C]4<1b:Cc>W@TUUng9_FXZ=S>:=P9Ihe`BX@Z?dZ]MOidU X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:6545 Date: 2005-11-23T10:23:58+01:00 List-Id: 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;