]> rhodes.io Git - specializable.git/commitdiff
Christophe Weblog Wiki Code Publications Music
use CALL-NEXT-METHOD rather than CLASS-OF for NEXT slot filling els2014-submission
authorChristophe Rhodes <csr21@cantab.net>
Wed, 5 Mar 2014 11:00:20 +0000 (11:00 +0000)
committerChristophe Rhodes <csr21@cantab.net>
Wed, 5 Mar 2014 11:00:20 +0000 (11:00 +0000)
accept-specializer.lisp

index a72b1595918ca6b30b7a065e508ad62e5eafdfc5..3dd7ce7b164f56b0aa9cd043f81cf447ec3d145b 100644 (file)
 (defmethod generalizer-of-using-class ((gf accept-generic-function) (arg tbnl:request))
   (make-instance 'accept-generalizer
                  :header (tbnl:header-in :accept arg)
-                 :next (class-of arg)))
+                 :next (call-next-method)))
 (defmethod generalizer-equal-hash-key
     ((gf accept-generic-function) (g accept-generalizer))
   `(accept-generalizer ,(header g)))
 (defmethod generalizer-of-using-class ((gf accept-generic-function) (s string))
   (make-instance 'accept-generalizer
                  :header s
-                 :next (class-of s)))
+                 :next (call-next-method)))
 (defmethod specializer-accepts-p ((s accept-specializer) (string string))
   (q-ok (media-type s) (parse-accept-string string)))