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

Re: Issue: PATHNAME-CANONICAL-TYPE (Version 1)



    Date: Fri, 22 Jul 88 11:04:45 MDT
    From: sandra%cdr@cs.utah.edu (Sandra J Loosemore)

    Under the "Current Practice" section, you might add that programmers
    who need to do this kind of thing now typically make a constant or
    global variable that is initialized to hold the right file type for
    whatever implementation is being used.  In fact, here is what I've
    been using (which I believe was stolen from somebody else)....

Looks like a good argument for standardization, since I think some
of these are wrong, and it would probably take half a week to test
them all.

    (defvar *binary-file-type*
	#+Symbolics                         (make-pathname :type "bin")
	#+(and dec common vax (not ultrix)) (make-pathname :type "FAS")
	#+(and dec common vax ultrix)       (make-pathname :type "fas")
	#+pcls                              (make-pathname :type "b")
	#+KCL                               (make-pathname :type "o")
	#+Xerox                             (make-pathname :type "dfasl")
	#+(and Lucid MC68000)               (make-pathname :type "lbin")
	#+(and Lucid VAX VMS)               (make-pathname :type "vbin")
	#+excl                              (make-pathname :type "fasl")
	#+system::cmu                       (make-pathname :type "sfasl")
	#+PRIME                             (make-pathname :type "pbin")
	#+HP                                (make-pathname :type "b")
	#+TI                                (make-pathname :type "xfasl")
	"The default file type for compiled files.")