comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: Extended Return Statement with exception
Date: Wed, 23 Nov 2005 10:24:10 +0100
Date: 2005-11-23T10:23:58+01:00	[thread overview]
Message-ID: <4384352e$0$27882$9b4e6d93@newsread4.arcor-online.net> (raw)
In-Reply-To: <1132714194.300770.290480@z14g2000cwz.googlegroups.com>

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  9:24 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 [this message]
2005-11-23 14:36       ` Anh Vo
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox