Paste number 84: a, b, c and m1/m2

Paste number 84: a, b, c and m1/m2
Pasted by: jdz
When:10 years, 7 months ago
Share:Tweet this! | http://paste.lisp.org/+2C
Channel:#lisp
Paste contents:
Raw Source | XML | Display As
(defclass a () ())
(defclass b (a) ())
(defclass c (b) ())

(defmethod m1 ((object a)) "m1 for a")
(defmethod m1 ((object b)) "m1 for b")
(defmethod m1 ((object c)) "m1 for c")

(defvar *c* (make-instance 'c))

(m2 *c*)

;; Where's the problem?

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.