Re: Re: pathname-directory

Marco Antoniotti <[email protected]>
Newsgroups gmane.lisp.corman
Message-ID <[email protected]>
Hi

apart from your problems with the use of the :DIRECTORY slot, I still  
think that CormanLisp should have told you something when doing

(make-pathname :directory '("\\test_directory"))

I would either have expected a condition of some kind to be signalled  
or the return of the pathname

	#S(PATHNAME :DIRECTORY (:RELATIVE "\\test_directory") ...)

Of course you are entering the unfortunate realm of implementation  
dependencies left over by the spec.  Note also that the use of the  
:DEVICE "C", while useful and common sense, is unfortunately  
unportable, given the non-communication between vendors in the past.

Cheers

marco

On Tuesday, Feb 25, 2003, at 04:32 America/New_York, SmallHairyTroll  
<[email protected]> wrote:

> --- In [email protected], "SmallHairyTroll <lcluke@w...>"
> <lcluke@w...> wrote:
>
>> OK... this works
>>
>> (setf path (make-pathname
>>         :device "C"
>>         :directory '(truename "\\test_directory")
>>         :name "test_file.txt"))
>>
>> I know I am passing an incorrect value to :directory as
>> (truename "\\test_directory") returns ...
>>
>> #P"c:\test_directory"
>
> The CLHS explains all:
>
> (setf path (make-pathname
>          :device "C"
>          :directory '(:absolute "test_directory")
>          :name "test_file.txt"))
>
>
>
>
> ------------------------ 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/
>
>
--
Marco Antoniotti
NYU Courant Bioinformatics Group		tel. +1 - 212 - 998 3488
715 Broadway 10th FL				fax. +1 - 212 - 998 3484
New York, NY, 10003, U.S.A.


------------------------ 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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.