<div class="gmail_quote">On Thu, Oct 13, 2011 at 1:24 AM, Mark Cox <span dir="ltr"><<a href="mailto:markcox80@gmail.com">markcox80@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">I have two issues with respect to the merging of DELETE-FILE and</div><div><div class="h5">
RMDIR:<br>
<br>
1. For physical pathnames it seems straightforward, but I do<br>
wonder if there are any unexpected gotchas when using logical<br>
pathnames.<br></div></div></blockquote><div><br></div><div>Understood, but here the user must understand that logical pathnames are not physical objects. An invalid pathname translation also has problems with delete-files, as it would do one that changes a file into a directory and viceversa.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5">2. DELETE-FILE is defined by the CLHS. People who use ECL without<br>
reading too much of the CLHS may expect DELETE-FILE to behave<br>
similarly across implementations. For example, it was a huge shock to<br>
me that in CLISP, PROBE-FILE signals an error when called with a<br>
pathname that represents a directory.<br></div></div></blockquote><div><br></div><div>This is a different field. So far no implementation has restrained from having unspecified behavior because ECL users might be confused, and this includes incorrect LOOP forms, but this is not the case. As Waldek pointed out, the key point is the definition of file (<a href="http://clhs.lisp.se/Body/26_glo_f.htm#file">http://clhs.lisp.se/Body/26_glo_f.htm#file</a>), which talks about a named entry in the file system. If ECL already considers directories to be valid files for PROBE-FILE, then it is inconsistent in not allowing to delete them, and failing to rename them for some fo the syntaxes.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5">
This is one area where a CDR would be beneficial to the community to<br>
try and address some of these inconsistencies.<br>
</div></div></blockquote></div><br>Indeed, but in the mean time things have to get done :-) And besides, I doubt anyone feels confident enough to redo the pathname stuff in Common Lisp.<div><br></div><div>Juanjo<br clear="all">
<div><br></div>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com" target="_blank">http://juanjose.garciaripoll.googlepages.com</a><br>
</div>