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:20:22 +0100
Date: 2004-10-29T09:20:22+01:00	[thread overview]
Message-ID: <4181fbd4$1_1@baen1673807.greenlnk.net> (raw)
In-Reply-To: Goigd.324035$MQ5.102523@attbi_s52

Steve wrote:
> The "variable lenght strings thread" has touched on the case of using
> Ada.Text_Io.Get_Line with a string on the last line of a file that
> does not contain a file terminator.  In this case an End_Error
> exception is raised.
>
> 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.

Cheers

-- Martin






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

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

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