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

Re: Macrolet and setf



    Date: 22 Nov 86 15:04 PST (Saturday)
    From: ricks%shambhala.Berkeley.EDU@BERKELEY.EDU (Rick L
    Spickelmier)
     
    Are macros defined with macrolet allowed as place forms in setf?
     
    I have tried the following in VAXLISP and EXCL with both
    reporting that 'mmm' can not be used as a place form (interpreted
and
    compiled).
     
    (defun abc (n)
      (macrolet ((mmm (z) `(gethash ,z *bob*)))
    	    (setf (mmm n) 5)))
     
I believe that VAXLISP and EXCL are both in error.  Xerox, Lucid, and
Symbolics all do this correctly.

	Pavel