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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a321e2ada8a9e4d4 X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: File Management query - LRM unclear Date: 2000/02/07 Message-ID: <87nd1o$6t3$1@nnrp1.deja.com>#1/1 X-Deja-AN: 582782362 References: <87n35g$uuo$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x25.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Feb 07 21:22:05 2000 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.7 [en] (WinNT; I) Date: 2000-02-07T00:00:00+00:00 List-Id: In article <87n35g$uuo$1@nnrp1.deja.com>, dommo1234@my-deja.com wrote: > called, I envoke the (my) function that attempts to open the file, in > order to obtain the File_Type instance required to call the Ada > library's Delete(..) primitive. Now comes the query. If the external- > file is already open, the exception 'Status_Error' gets thrown. That > *is* clear (LRM A.8.2[8]), but what isn't clear, is whether or not the > File_Type instance associated with the already-open external file is > supposed to be returned in the first (in/out) parameter of the Delete > primitive. If not, how can I obtain it, in order that I may actually > delete the file? I think that wasn't specified because...well...because that isn't specified. You can pretty much assume that the already opened file object will *not* be returned. The whole point of the error is that it could not open the file for you. Telling you that, then proceeding to open the file for you would be a bit silly. That would be roughtly like a clerk saying, "I'm sorry but I can't give you a salt bagel because someone has already taken the last one.", and then going over to that customer, taking their bagel, handing it to you, and saying "See, here it is." I'm afraid that the onus is going to have to be on the caller of your routine to ensure that the file is not open. That may sound like a pain, but I'd be willing to bet the other customer's salt bagel that your OS's file deletion command works the same way. :-) -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/ Before you buy.