home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!emory!sol.ctr.columbia.edu!spool.mu.edu!mixcom.com!wstar.mixcom.com!jpf
- From: jpf@wstar.mixcom.com (John P. Flanagan)
- Newsgroups: comp.lang.lisp
- Subject: Re: *READ-SUPPRESS* and #P syntax
- Message-ID: <1992Nov11.201954.825@wstar.mixcom.com>
- Date: 11 Nov 92 20:19:54 GMT
- Article-I.D.: wstar.1992Nov11.201954.825
- References: <1992Nov11.014902.6585@kronos.arc.nasa.gov>
- Organization: WaveStar Technology
- Lines: 46
-
- philpot@kepler.arc.nasa.gov (Andrew Philpot) writes:
-
- >Should *READ-SUPPRESS* be obeyed when reading literal pathnames using
- >#P?
-
- Yes!
-
- [... stuff deleted ...]
-
- >However, strictly speaking, this behavior is allowed by pp. 522 ff. of
- >CLtL2. It appears that the appropriate section of the new dpAns spec
- >agrees with CLtl2 in this matter. I couldn't swear I got to the right
- >section, but there was one in dict-reader.tex that mirrored 22.1.2
- >pretty well, and I didn't find any reference to #P there.
-
- Strictly speaking, I don't think this behavior is allowed. Section
- 2.4.8.14, p.2-33 in the dpANS makes the following statement:
-
- "#P"..." is equivalent to #.(parse-namestring "...")."
-
- Now, from the description for *read-suppress* on p.23-22, section 23.2:
-
- "The #. notation reads the following object in suppressed mode but
- does not evaluate it. The object is discarded and nil is produced."
-
- note: IMHO, the dpANS should explicitly mention #P in this section as well.
- Unless I've missed something here, I'll add this suggestion to my
- list of public review comments to be mailed next week.
-
- >Is it the intent of dpAns that
-
- > (defvar my-path
- > #+EXCL #P(:type "lisp")
- > #+LUCID #P".lisp"
- > )
-
- >can cause an error?
-
- No. I don't think Lucid should be signaling an error in this case.
-
- -jpf.
- --
- __________________________________________________________________________
- WaveStar Technology WaveStar Common Lisp John P. Flanagan
- W344 N6855 Bayberry Court ANSI-12.24, X3J13/92 (414) 367-5014
- Oconomowoc, WI 53066 HPUX-800/700/400/300 jpf@wstar.mixcom.com
-