summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/txr/stdlib/struct.tl8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/txr/stdlib/struct.tl b/share/txr/stdlib/struct.tl
index 0f3d79eb..6bf665fb 100644
--- a/share/txr/stdlib/struct.tl
+++ b/share/txr/stdlib/struct.tl
@@ -269,13 +269,13 @@
(defplace (sys:rslot struct sym meth-sym) body
(getter setter
- (with-gensyms (struct-sym slot-sym meth-sym)
+ (with-gensyms (struct-sym slot-sym meth-slot-sym)
^(slet ((,struct-sym ,struct)
(,slot-sym ,sym)
- (,meth-sym ,meth-sym))
+ (,meth-slot-sym ,meth-sym))
(macrolet ((,getter () ^(slot ,',struct-sym ,',slot-sym))
- (,setter (val) ^(sys:rslotset ,',struct-sym
- ,',slot-sym ,val)))
+ (,setter (val) ^(sys:rslotset ,',struct-sym ,',slot-sym
+ ,',meth-slot-sym ,val)))
,body))))
(ssetter
^(macrolet ((,ssetter (val) ^(progn