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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d8a4797a79f9c90f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-28 15:51:58 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc02.POSTED!not-for-mail Message-ID: <3ED53D7E.40901@attbi.com> From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: I/O - exception handling References: <3ED4114A.5060204@spam.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.62.164.137 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc02 1054162312 24.62.164.137 (Wed, 28 May 2003 22:51:52 GMT) NNTP-Posting-Date: Wed, 28 May 2003 22:51:52 GMT Organization: AT&T Broadband Date: Wed, 28 May 2003 22:51:52 GMT Xref: archiver1.google.com comp.lang.ada:37953 Date: 2003-05-28T22:51:52+00:00 List-Id: Randy Brukardt wrote: > While I don't think any implementor would plan to raise an exception > from Is_Open, certainly the standard allows Use_Error or Device_Error > and of course Storage_Error and Program_Error (if there are elaboration > problems). In practice, I think it's safe to ignore that possibility. Totally agree with respect to Is_Open. However, there are cases where exceptions on Close are not only possible but likely in some situations. For example it is perfectly legal in Ada to close Standard_Output and other standard files. There was even an AI a while back making it clear that it is legal to do so, and what it means if the implementation does support it. But implementations (notice, not compilers, this is a target OS or environment issue) may not allow some files to be closed, and you will get Use_Error.