GOOPS class slot indices defined as inline values
authorAndy Wingo <wingo@pobox.com>
Fri, 16 Jan 2015 09:20:17 +0000 (10:20 +0100)
committerAndy Wingo <wingo@pobox.com>
Fri, 23 Jan 2015 15:16:03 +0000 (16:16 +0100)
* module/oop/goops.scm (define-class-index): Define as inline values.

module/oop/goops.scm

index 3c5b688..41b4226 100644 (file)
                 (syntax-case x ()
                   ((_ (name . _) tail)
                    #`(begin
-                       (define #,(id-append #'name #'class-index- #'name)
-                         #,(tail-length #'tail))
+                       (define-syntax #,(id-append #'name #'class-index- #'name)
+                         (identifier-syntax #,(tail-length #'tail)))
                        tail))))))
   (fold-class-slots macro-fold-left define-class-index (begin)))