diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-01-18 07:50:17 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-01-18 07:50:17 -0800 |
commit | 3bcad308dba9cbe1ee6e66fc405e479c29992567 (patch) | |
tree | 8b150d021e727e980b6b38e634f23b5efd74a355 /tests/common.tl | |
parent | fbe8228a05d169c539cd36218b466e5d298923ba (diff) | |
download | txr-3bcad308dba9cbe1ee6e66fc405e479c29992567.tar.gz txr-3bcad308dba9cbe1ee6e66fc405e479c29992567.tar.bz2 txr-3bcad308dba9cbe1ee6e66fc405e479c29992567.zip |
quasiquote: make new @,expr work in dot position.
Bugfix: the newly introduced @.expr fails in the
dotted position because ^(a . @,expr) turns
into (list 'a 'let ...).
* eval.c (is_meta_unquote): New static function.
(expand_qquote_rec): Replace existing shape test with
is_meta_unquote. We must also use this test in one more place:
whenever the cdr of a list has the meta unquote shape,
we must treat the result similarly to a dotted atom, by
converting to append format.
* tests/010/qquote.tl: Test cases to cover this.
Diffstat (limited to 'tests/common.tl')
0 files changed, 0 insertions, 0 deletions