From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2c4ffb461d487342 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: Parameter return when exceptions occur Date: Fri, 29 Oct 2004 09:20:22 +0100 Organization: BAE SYSTEMS Message-ID: <4181fbd4$1_1@baen1673807.greenlnk.net> References: X-Trace: news.uni-berlin.de H3qkhfg/9B9WNgz5xrDdCQ/ytpxZg88Q7XuE7QiIt814t8U3gK X-Orig-Path: baen1673807.greenlnk.net!baen1673807!not-for-mail X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Original-NNTP-Posting-Host: baen1673807.greenlnk.net Xref: g2news1.google.com comp.lang.ada:5824 Date: 2004-10-29T09:20:22+01:00 List-Id: 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