added a method for symbols so that (meta-model.metadata 'class) works.
authorDrew Crampsie <drewc@tech.coop>
Thu, 7 Jul 2005 02:42:34 +0000 (19:42 -0700)
committerDrew Crampsie <drewc@tech.coop>
Thu, 7 Jul 2005 02:42:34 +0000 (19:42 -0700)
darcs-hash:20050707024234-5417e-2b4477a0d360322de6c9e3ca2d757c2b1e27742c.gz

src/meta-model.lisp

index 598debf..aabd2ff 100644 (file)
@@ -22,6 +22,9 @@
 (defmethod meta-model.metadata ((self (eql nil)))
   nil)
 
+(defmethod meta-model.metadata ((self symbol))
+  (meta-model.metadata (make-instance self)))
+
 (defun gen-supers (supers)
   (let (subclassp)
     (dolist (x supers)