comp.lang.ada
 help / color / mirror / Atom feed
From: "Anh Vo" <anhvofrcaus@gmail.com>
Subject: Extended Return Statement with exception
Date: 22 Nov 2005 11:31:29 -0800
Date: 2005-11-22T11:31:29-08:00	[thread overview]
Message-ID: <1132687889.831797.109510@o13g2000cwo.googlegroups.com> (raw)

I have read the Extended Return Statement in Ada 2005 RM and Rationale.
However, I am still not sure how it works. In other word, what will be
returned when an exception occurs and handled the the exception handler
within this extended return statement. Consider the following notional
code, what exactly will be returned?

type T is limited ...
...

function Make (...) return T is
begin
   ...
   return R : T do
      ...
      ...   -- Constraint_Error is raised here for example
   exception
      ... handle Constraint_Error here.
   end return;
end Make;

AV




             reply	other threads:[~2005-11-22 19:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-22 19:31 Anh Vo [this message]
2005-11-22 21:46 ` Extended Return Statement with exception 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
replies disabled

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