diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-04-05 19:36:46 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-04-05 19:36:46 -0700 |
commit | 695bd0d14d03e2b3380d2913b87dadc60383235f (patch) | |
tree | 4ef281b273716330ff18002b84ead868bc014fae | |
parent | 28addfad27fc5c4ca7592789cc587a0faada9a42 (diff) | |
download | txr-695bd0d14d03e2b3380d2913b87dadc60383235f.tar.gz txr-695bd0d14d03e2b3380d2913b87dadc60383235f.tar.bz2 txr-695bd0d14d03e2b3380d2913b87dadc60383235f.zip |
qref: bugfix: handle a.(b).?c correctly.
* share/txr/stdlib/struct.tl (qref): Do not assume that (b) is
the name of a slot to be looked up. Use qref to handle it.
-rw-r--r-- | share/txr/stdlib/struct.tl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/txr/stdlib/struct.tl b/share/txr/stdlib/struct.tl index ca3de714..56d27e0a 100644 --- a/share/txr/stdlib/struct.tl +++ b/share/txr/stdlib/struct.tl @@ -220,7 +220,7 @@ (((pref sym) . more) (if (eq pref t) (let ((s (gensym))) - ^(let ((,s (slot ,obj ',sym))) + ^(let ((,s (qref ,obj ,sym))) (if ,s (qref ,s ,*more)))) :)) (((dw sym . args)) |