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-29 23:56:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.e.nsc.no!nsc.no!nextra.com!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: I/O - exception handling Date: Fri, 30 May 2003 06:56:14 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <3ED4114A.5060204@spam.com> NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1054277774 17155 129.241.83.78 (30 May 2003 06:56:14 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Fri, 30 May 2003 06:56:14 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:38042 Date: 2003-05-30T06:56:14+00:00 List-Id: Randy Brukardt wrote: > Preben Randhol wrote in message ... >>Sergey Koshcheyev wrote: >>> Since Is_Open is an I/O feature, this means to me that it may raise > one >>> of these exceptions too. >> >>The implementation of Is_Open in Gnat (3.14p) is: > ... >>So I don't see that this can raise an exception. > > > But of course Gnat /= Ada. > > 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. I see, but why would it? I mean why would Is_Open start poking in the I/O. On Linux/Unix you don't lock files as in Windows, so you cannot tell if the file is opened or not as 10 programs may open it at the same time. Therefore I thought the implementation would be a test if the Open procedure succeded or not? -- Preben Randhol http://www.pvv.org/~randhol/