home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.lisp
- Path: sparky!uunet!think.com!mintaka.lcs.mit.edu!gateway
- From: SWM@stony-brook.scrc.symbolics.com (Scott McKay)
- Subject: *READ-SUPPRESS* and #P syntax
- Message-ID: <19921118191401.5.SWM@SUMMER.SCRC.Symbolics.COM>
- X-Unparseable-Date: Wed
- Sender: news@mintaka.lcs.mit.edu
- Organization: LCS news/mail gateway
- References: <1992Nov11.014902.6585@kronos.arc.nasa.gov>
- Date: Wed, 18 Nov 1992 19:17:09 GMT
- Lines: 44
-
- Date: Tue, 10 Nov 1992 20:49 EST
- From: Andrew Philpot <philpot@kepler.arc.nasa.gov>
-
- Should *READ-SUPPRESS* be obeyed when reading literal pathnames using
- #P?
-
- I am no dpANS language lawyer, but it certainly seems "right" that
- *READ-SUPPRESS* should prevent #P from doing syntax-checking on the
- literal pathname.
-
- Siutation: My code was trying to read in some files which contain
- references to pathnames using the #P syntax. Lucid and Franz have
- different syntaxes for the object following the #P. Lucid allows only
- a string, whereas Franz supports both strings and lists in this
- position. Lucid signals an error when given an expression of the form
- #P followed by a list, since that violates its #P reader.
-
- So far, so good. However, in (lucid) lcl4.1b, you can't avoid
- signaling this error when reading a Franz-derived #P pathname.
- Putting a #-LUCID or #+EXCL qualifier in front of the form doesn't
- seem to work; it reads enough to signal the error anyway.
-
- One would imagine that the intent of using READ-SUPPRESS to implement
- the *FEATURES* idea was to avoid signaling errors associated with just
- this kind of implementation-specific extension.
-
- 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.
-
- Is it the intent of dpAns that
-
- (defvar my-path
- #+EXCL #P(:type "lisp")
- #+LUCID #P".lisp"
- )
-
- can cause an error?
-
- --
- ---------------------------------------------------------------
- philpot@ptolemy.arc.nasa.gov
-