summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-11-29 21:40:05 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-11-29 21:40:05 -0800
commitb5dfdffb1d73789ea1b3bb597b44f58604a1107e (patch)
tree9ebf13b3263284a2d3b1d960ee81d1acb059562c
parente0cdc5d61ed9ee40f21d0c77764105a35fc51fe2 (diff)
downloadtxr-b5dfdffb1d73789ea1b3bb597b44f58604a1107e.tar.gz
txr-b5dfdffb1d73789ea1b3bb597b44f58604a1107e.tar.bz2
txr-b5dfdffb1d73789ea1b3bb597b44f58604a1107e.zip
Awk: assignment to f doesn't yield new value.
* share/txr/stdlib/struct.tl (sys:rslotset): Return the new value that comes out of slotset, rather than the value of the method call. Also, we don't need macro-time wrapping.
-rw-r--r--share/txr/stdlib/struct.tl4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/txr/stdlib/struct.tl b/share/txr/stdlib/struct.tl
index ca764b03..b180a2d5 100644
--- a/share/txr/stdlib/struct.tl
+++ b/share/txr/stdlib/struct.tl
@@ -259,8 +259,8 @@
slot-specs))
,*body))))
-(macro-time
- (defun sys:rslotset (struct sym meth-sym val)
+(defun sys:rslotset (struct sym meth-sym val)
+ (prog1
(slotset struct sym val)
(call (umethod meth-sym) struct)))