From 2c65f2d5a7b5f6e75179d66c32c1de5380b334cc Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Fri, 27 Feb 2009 10:53:00 +0100 Subject: use common slots mechanism in ghil * module/system/base/syntax.scm (define-type): Fix getter for common slot. * module/language/ghil.scm (): Use the common slots mechanism. --- module/system/base/syntax.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/system/base/syntax.scm') diff --git a/module/system/base/syntax.scm b/module/system/base/syntax.scm index 4382a8e66..35748bb79 100644 --- a/module/system/base/syntax.scm +++ b/module/system/base/syntax.scm @@ -50,7 +50,7 @@ `(define (,(symbol-append (trim-brackets name) '- common-slot) x) - (struct-ref x i))) + (struct-ref x ,i))) common-slots (iota (length common-slots))))))) -- cgit v1.2.3