[Openmcl-devel] (make-pathname :name "x.1") => #P"x>.1" bug or feature?

Zach Beane xach at xach.com
Thu Apr 2 12:53:50 PDT 2015


Mirko Vukovic <mirko.vukovic at gmail.com> writes:

> Hello,
>
> Doing (make-pathname :name "x.1") gives #P"x>.1"
>
> On clisp and sbcl I get #P"x.1"
>
> I am merging components to generate a name such as #P".../name.1.type" that
> is needed by an external application.

The syntax of a namestring is implementation-dependent.

If you want a string representing the file's name to give to an external
application or API, you can get it on CCL via
CCL:NATIVE-TRANSLATED-NAMESTRING.

On SBCL, you can use SB-EXT:NATIVE-NAMESTRING. 

Zach



More information about the Openmcl-devel mailing list