[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: issue SYNTACTIC-ENVIRONMENT-ACCESS, version 5
- To: "sandra%defun@cs.utah.edu"@multimax.encore.com (Sandra J Loosemore)
- Subject: Re: issue SYNTACTIC-ENVIRONMENT-ACCESS, version 5
- From: Dan L. Pierson <pierson@mist.encore.com>
- Date: Tue, 21 Mar 89 10:39:53 EST
- Cc: cl-compiler@SAIL.STANFORD.EDU
- In-reply-to: Your message of Tue, 21 Mar 89 07:14:06 -0700. <8903211414.AA10699@defun.utah.edu>
Perhaps we could use the (newly added) second return value from
VARIABLE-INFORMATION to tell whether the declaration or definition of
the variable is local or global, instead of whether there is a local
binding of the variable. That would complicate things a little
though, because the interpretation of the second value would depend on
the first:
First value Second value
NIL Always NIL
:SPECIAL T = declared special, NIL = proclaimed special
:LEXICAL T = declared lexical or assumed lexical because of
local binding, NIL = proclaimed lexical
:SYMBOL-MACRO Always T
:CONSTANT Always NIL
Seems reasonable. I don't think the complication is significant since
what you want to do is likely to change as the first value changes anyway.