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,FREEMAIL_FROM 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!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s51.POSTED!53ab2750!not-for-mail From: "Steve" Newsgroups: comp.lang.ada References: <4181fbd4$1_1@baen1673807.greenlnk.net> Subject: Re: Parameter return when exceptions occur X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: NNTP-Posting-Host: 24.21.42.251 X-Complaints-To: abuse@comcast.net X-Trace: attbi_s51 1099271987 24.21.42.251 (Mon, 01 Nov 2004 01:19:47 GMT) NNTP-Posting-Date: Mon, 01 Nov 2004 01:19:47 GMT Organization: Comcast Online Date: Mon, 01 Nov 2004 01:19:47 GMT Xref: g2news1.google.com comp.lang.ada:5943 Date: 2004-11-01T01:19:47+00:00 List-Id: It would be nice if Text_Io.Get_Line would work this way and return a count and string when an end error exception occurs. I think it actually works with some compilers. Steve (The Duck) "Matthew Heaney" wrote in message news:u654rj65p.fsf@earthlink.net... > "Martin Dowie" writes: > > > If a subprogram raises an exception you can assume /nothing/ about the > > contents of the returning values. > > This is only true if this is a pass-by-copy type (scalar, etc). If the > type is pass-by-reference (tagged, etc), then yes, you can depend on the > values "returned" by the subprogram, even when there's an exception. > (In fact, the AI-302 containers depend on this behavior.)