comp.lang.ada
 help / color / mirror / Atom feed
* Extended Return Statement with exception
@ 2005-11-22 19:31 Anh Vo
  2005-11-22 21:46 ` Pascal Obry
  2005-11-23  0:06 ` Randy Brukardt
  0 siblings, 2 replies; 7+ messages in thread
From: Anh Vo @ 2005-11-22 19:31 UTC (permalink / 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




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-11-23 14:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox