guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 15/25: GOOPS class slot indices defined as inline values


From: Andy Wingo
Subject: [Guile-commits] 15/25: GOOPS class slot indices defined as inline values
Date: Mon, 19 Jan 2015 10:41:12 +0000

wingo pushed a commit to branch wip-goops-refactor
in repository guile.

commit 9ff09f61a6c3e1c13a123fa4a3ff4c0ca23614a1
Author: Andy Wingo <address@hidden>
Date:   Fri Jan 16 10:20:17 2015 +0100

    GOOPS class slot indices defined as inline values
    
    * module/oop/goops.scm (define-class-index): Define as inline values.
---
 module/oop/goops.scm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/module/oop/goops.scm b/module/oop/goops.scm
index 70504eb..7605a58 100644
--- a/module/oop/goops.scm
+++ b/module/oop/goops.scm
@@ -210,8 +210,8 @@
                 (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)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]