Fwd: Re: [cmucl-help] TRANSLATE-PATHNAME Bug?
toy.raymond at gmail.com
Fri Jan 29 19:58:25 CET 2010
I didn't reply to the list like I had intended to. (Thunderbird 3 is
different enough from 2 that I'm not yet adjusted.)
-------- Original Message --------
Subject: Re: [cmucl-help] TRANSLATE-PATHNAME Bug?
Date: Fri, 29 Jan 2010 12:57:34 -0500
From: Raymond Toy <toy.raymond at gmail.com>
To: Marco Antoniotti <marcoxa at cs.nyu.edu>
On 1/29/10 11:55 AM, Marco Antoniotti wrote:
> I think this is a bug (although it is 19D)
> * (translate-pathname "/Users/marcoxa/Projects/Lang/CL/HELAMBDAP/
> * (describe *)
> #P"/HELAMBDAP/helambdap-pkg.lisp" is a structure of type PATHNAME.
> HOST: #<LISP::UNIX-HOST>.
> DEVICE: NIL.
> DIRECTORY: (:ABSOLUTE "HELAMBDAP").
> NAME: "helambdap-pkg".
> TYPE: "lisp".
> VERSION: NIL.
> I think the result should be a :RELATIVE pathname.
> Is it still like this in the current version?
Yes, it still works this way.
I can't figure out from the CLHS what this should return. However, both
clisp and clozure cl return a relative pathname. Based on the comments
for TRANSLATE-DIRECTORIES, cmucl has basically always returned a
pathname directory that is the same kind as the source.
I think I prefer your interpretation. We can always trivially get back
the old result if the TO pattern is an absolute path.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cmucl-help