Bruno Haible <bruno@...> writes:
> In SBCL 0.8.11, the function compute-default-initargs is expected to return
> a list of the form ((keyword function) ...), but according to the MOP it
> should return a list of the form ((keyword form function) ...). See
> MOP p. 39, description of compute-default-initargs
> "The value returned by this generic function is a list of canonicalized
> default initialization arguments."
> and MOP p. 16
> "A canonicalized default initarg is a list of three elements. The first
> element is the name; the second is the actual form itself; and the third
> is a function of zero arguments which, when called, returns the result
> of evaluating the default value form its proper lexical environment."
Interesting. Do you use the actual form itself for anything in CLISP?
What could it be used for (error reporting, maybe, if it evaluates to
something that is of the wrong type for a slot? Dunno)?
http://www-jcsu.jesus.cam.ac.uk/~csr21/ +44 1223 510 299/+44 7729 383 757
(set-pprint-dispatch 'number (lambda (s o) (declare (special b)) (format s b)))
(defvar b "~&Just another Lisp hacker~%") (pprint #36rJesusCollegeCambridge)