opening it up with Common Lisp

Favorite weblogs

Lisp Related

Bill Clementson

Finding Lisp


Planet Lisp



Talking Points Memo

This Modern World

Working for Change

Other home


Recent Readings

Book review: Darwinia
Reviewed: Friday, August 11, 2006

Summer reading: Spin
Reviewed: Saturday, August 5, 2006

Reviewed: Tuesday, July 18, 2006

the Omnivoire's Delimma
Reviewed: Wednesday, July 12, 2006

the Golem's Eye
Reviewed: Wednesday, May 31, 2006


Making pathnames, part two
Monday, January 2, 2006

I received several pathname creation strategies in the mail, all using merge-pathnames. Thanks to Andreas Fuchs, Zach Beane and Peter Seibel for their insights. The basic idiom is:

(defparameter *output-directory*
    :directory '(:relative "output")) *working-directory*)) 

Or, if CL-FAD is available:

(merge-pathnames (pathname-as-directory "output") *working-directory*)

This is nicer than my solution because it makes both Lisp and the programmer do less work. Three cheers for the Lisp community.


Home | About | Quotes | Recent | Archives

Copyright -- Gary Warren King, 2004 - 2006