[plt-scheme] documentation for swindle's clos?

From: Marco Maggi (marco.maggi-ipsu at poste.it)
Date: Tue Dec 11 15:05:46 EST 2007


I am new to MzScheme. I am looking for documentation
for "clos.ss". It seems to me that there is nothing in the
online doc at plt-scheme.org.

Can you tell me if it is possible rebind a symbol
to a generic function? If I try:

(define saved-display display)
(defgeneric display)
(defmethod (display (o <top>) . args)
  (apply saved-display o args))

(defmethod (display (o <integer>))
  (format "integer ~A~%" o)

I get:

add-method: wrong arity for `display', expects at-least-1;
given a method with 1

I am used to Guile's GOOPS and with it this is possible.


Marco Maggi

"Now feel the funk blast!"
Rage Against the Machine - "Calm like a bomb"

Posted on the users mailing list.