Redefine to-app as a generic function.

This commit is contained in:
Eitaro Fukamachi 2015-03-26 08:51:23 +09:00
parent 80a1c2d300
commit e80f4e2ebc

View file

@ -12,7 +12,8 @@
(:method ((component function) env) (:method ((component function) env)
(funcall component env))) (funcall component env)))
(defun to-app (component) (defgeneric to-app (component)
(if (typep component 'lack-component) (:method ((component lack-component))
(lambda (env) (call component env)) (lambda (env) (call component env)))
component)) (:method ((component t))
component))