| Newsgroups |
gmane.lisp.corman |
| Message-ID |
<[email protected]> |
--- In [email protected], JP Massar <massar@a...> wrote:
>
> >
> >So MAKE-PATHNAME must clearly accept a string as the argument
> >for the :DIRECTORY keyword, but it is not. And it also certainly
> >should accept a list of one string and treat it as a string.
>
> Oops. I meant to say 'And it ALMOST certainly should accept a
list of one
> string
> and treat it as a string.'
>
> It has to accept a list of strings according to the HS, but
whether it
> should treat
> that as a single string or in some other implementation dependent
way is
> not clear
> from the description.
>
Interestingly :directory and :name are assigned even though make-
pathname "fails" (when a string is used instead of a list). i.e.
(setf path (make-pathname
:device "H"
:directory "\\test_directory"
:name "test_file.txt"))
(pathname-directory path)
"\\test_directory"
(pathname-name path)
"test_file.txt"
(namestring path)
;;; An error occurred in function CONVERT-PATHNAME-TO-NAMESTRING:
;;; Error: Not a list: \test_directory
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/FpY02D/vN2EAA/xGHJAA/SyjtlB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
[email protected]
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/