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!news1.google.com!news.glorb.com!proxad.net!news2.telebyte.nl!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:59:44 +0100 Organization: BAE SYSTEMS Message-ID: <4182050d$1_1@baen1673807.greenlnk.net> References: X-Trace: news.uni-berlin.de lR4CUTj5HWY6Q+v/04IXAAgjIPldMgd8NZDF0arJDloDdhf12W 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:5830 Date: 2004-10-29T09:59:44+01:00 List-Id: 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