From: jsancho Date: Sun, 1 Nov 2009 23:10:19 +0000 (+0000) Subject: (no commit message) X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=88b17cb18b5b646782b7308edfded33e35559338;p=gacela.git --- diff --git a/gacela_mobs.lisp b/gacela_mobs.lisp index 62e6e6c..0cd56ae 100755 --- a/gacela_mobs.lisp +++ b/gacela_mobs.lisp @@ -25,7 +25,10 @@ ,(mob-options methods)))) (defun mob-options (methods) - ) + (labels ((options (m &aux (option (car m)) (vars (cadr m)) (body (caddr m))) + (cond ((null m) nil) + (t (cons option (cons (lambda body (options (cdddr m)))))))) + (cons 'case (cons 'option (options methods))))) (defmacro defmob (name variables &key init logic render) `(let ((make-name ',(intern (concatenate 'string "MAKE-" (string name)))))