comp.lang.ada
 help / color / mirror / Atom feed
From: "Anh Vo" <anhvofrcaus@gmail.com>
Subject: Re: Extended Return Statement with exception
Date: 23 Nov 2005 06:36:38 -0800
Date: 2005-11-23T06:36:38-08:00	[thread overview]
Message-ID: <1132756598.546702.183810@o13g2000cwo.googlegroups.com> (raw)
In-Reply-To: <4384352e$0$27882$9b4e6d93@newsread4.arcor-online.net>

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;




      reply	other threads:[~2005-11-23 14:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-22 19:31 Extended Return Statement with exception Anh Vo
2005-11-22 21:46 ` Pascal Obry
2005-11-22 22:27   ` Anh Vo
2005-11-23  0:06 ` Randy Brukardt
2005-11-23  2:49   ` Anh Vo
2005-11-23  9:24     ` Georg Bauhaus
2005-11-23 14:36       ` Anh Vo [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