comp.lang.ada
 help / color / mirror / Atom feed
From: "Martin Dowie" <martin.dowie@baesystems.com>
Subject: Re: Parameter return when exceptions occur
Date: Fri, 29 Oct 2004 09:59:44 +0100
Date: 2004-10-29T09:59:44+01:00	[thread overview]
Message-ID: <4182050d$1_1@baen1673807.greenlnk.net> (raw)
In-Reply-To: mailman.68.1099039361.10401.comp.lang.ada@ada-france.org

Christoph Karl Walter Grein wrote:
>>> Question: when the End_Error exception occurs, is anything known
>>> about the value of the parameters to Get_Line?  Does the procedure
>>> still return meaningful values?
>>>
>>> I suspect it is compiler dependent, since I didn't manage to find
>>> any explanation in the LRM.
>>
>> If a subprogram raises an exception you can assume /nothing/ about
>> the contents of the returning values.
>
> In fact, there even isn't a returned value since you "return" to a
> different place: the exception handler (if any).

The parameters used in the call might still be in scope though - but you
can't assume anything about their contents.

Cheers

-- Martin






  reply	other threads:[~2004-10-29  8:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-29  8:41 Parameter return when exceptions occur Christoph Karl Walter Grein
2004-10-29  8:59 ` Martin Dowie [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-10-29  3:02 Steve
2004-10-29  8:20 ` Martin Dowie
2004-10-31 14:47   ` Matthew Heaney
2004-11-01  1:19     ` Steve
2004-11-01  4:11       ` Jeffrey Carter
replies disabled

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