Generic Function Call
(defun seize (lock)
(etypecase lock
(simple-lock . . .)
(null-lock . . .)))
versus
(defmethod seize ((lock simple-lock)) . . .)
(defmethod seize ((lock null-lock)) . . .)
Should be roughly equivalent except for the first call to SEIZE.
Previous slide
Next slide
Back to first slide
View graphic version