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

pcl



My question is "Is the code in test.lisp obsolete, or is
my compilation of pcl incorrect?"   

Actually I just loaded the test.lisp file, and came to the error.
I did not type it in at top level.  So the with-slots was in a defmethod.

The code from test.lisp is:

(do-test "Simple with-slots test -- does not really exercise the walker."
	 ((:functions foo bar))

  (defmethod foo1 ((obj test-class-1))
    (with-slots (obj)
      (list x y)))

...


> PCL>Warning: The with-slots macro is now obsolete.  You should convert to
>          with-slots* or with-accessors* as soon as possible.
> Error: The class of OBJ was not specified and could not
>        be inferred from the lexical context.
> Error signalled by FUNCALL.

From your reply I believe I should replace obj
by (obj :class test-class-1).  Is this correct?

Bill Schelter.