home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!data.nas.nasa.gov!taligent!apple!cambridge.apple.com!kab
- From: kab (Kim Barrett)
- Newsgroups: comp.lang.lisp.mcl
- Subject: Re: file access FAQ
- Message-ID: <9211191533.AA17831@cambridge.apple.com>
- Date: 19 Nov 92 15:33:53 GMT
- Sender: info-mcl-request@cambridge.apple.com
- Lines: 22
- Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
-
- > This should be an FAQ: What's a good way to access files in
- > different directories in MCL, in a way that will not require code
- > changes to run in other CL implementations or on other Macs, and
- > allows some independence of the directory hierarchy?
- >
- > ...
- >
- > It isn't intuitively obvious how to do this in MCL in a way that
- > will allow the code to similarly load correctly without being
- > changed across machines or platforms. So the solution has to be
- > pure CL, but using aliases to mimic links would be fine too.
- >
- > E.g. the ugly thing I am doing now is to spell out the complete
- > path in the loads, and then when I move the code to another Mac
- > or machine, I alter the paths in the code with a global
- > substitution; I constrain the Macs to have isomorphic file
- > structures, so only the name of the disk drive has to be changed.
- > Expedient, but ugly, and a constant nuisance.
- >
- > A better approach would be appreciated!
-
- Use logical pathnames (CLtL2, p.628).
-