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

&aux and (call-next-method)



Apparently &aux variables get lost in the expansion of defmethod when
the method body contains (call-next-method...):

(defclass c () ())

;; This works fine
(defmethod method-1 ((a c) &aux l)
  (setq l (list a)))


;; Here L is declared special.
(defmethod method-1 ((a c) &aux l)
  (setq l (list a))
  (call-next-method)
  (print l))