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

Re: fixing our problems with setf



    Date: Tue, 13 Oct 87 18:45:44 PDT
    From: Pavel.pa@Xerox.COM

    Isn't it the case that lexical functions cannot have a SETF method in
    CLtL?

CLtL doesn't say, but the CL-Cleanup committee decided about half a year
ago, in resolving issue GET-SETF-METHOD-ENVIRONMENT, that what you say
is true.  See the handout from the June X3J13 meeting.

    I believe that in the following code:

	    (defsetf foo set-foo)
	
	    (flet ((foo (x) ...))
	       (setf (foo 7) 8))

    the function SET-FOO will not be called.  Instead, SETF should signal an
    error complaining about how there isn't a SETF method for the lexical
    function FOO.  The SETF method for the global function FOO is not used.

That's correct.

    Am I just hallucinating about this?

If so, you're hallucinating the same way as the Cleanup committee.