chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] pathname-extension strikes again


From: Dan
Subject: [Chicken-users] pathname-extension strikes again
Date: Fri, 3 Nov 2006 23:52:11 -0800 (PST)

Hi,

(pathname-extension) sometimes returns #f. string=?
doesn't like #f as an operand. Every single instance
of

(string=? ... (pathname-extension ...) ...)

is an error and should be taken out and shot.
Alternately, pathname-extension should be taken out
and shot.

Which instances would these be? Today I expose the
ones in chicken-setup.scm, inside (install-extension).
Because of those instances, you can't list a directory
in the install-extension FILELIST component (either by
itself, or as part of a (SOURCE DEST) pair).

(actually, if directory names end in ".ext", no error
is raised. Nice work-around).

I seem to remember pathname-extension was at the root
of some other problem, a long time ago. Why can't it
just return "" instead of #f? You may think it's
because "file." and "file" should be treated
differently. But

(pathname-extension "file.")

also returns #f.

-- Dan (pretty frustrated, trying to package an egg)


 
____________________________________________________________________________________
Everyone is raving about the all-new Yahoo! Mail 
(http://advision.webevents.yahoo.com/mailbeta/)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]