diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-02-04 19:37:35 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-02-04 19:37:35 -0800 |
commit | 853a8690b38d6331de24920eecf35b2c80733497 (patch) | |
tree | 4d986ef740bd0dae520b024e639bebdce101a213 | |
parent | 52b3873f1edd9d6da12aa173fc1738ec56d17021 (diff) | |
download | txr-853a8690b38d6331de24920eecf35b2c80733497.tar.gz txr-853a8690b38d6331de24920eecf35b2c80733497.tar.bz2 txr-853a8690b38d6331de24920eecf35b2c80733497.zip |
matcher: lambda-match: bug: wrong variable tested.
* share/txr/stdlib/match.tl (expand-lambda-match): The
matched-p-temp variable must be tested for each clause, not
result-temp. The result of a matching clause could be nil.
-rw-r--r-- | share/txr/stdlib/match.tl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/txr/stdlib/match.tl b/share/txr/stdlib/match.tl index f68a542e..70f19665 100644 --- a/share/txr/stdlib/match.tl +++ b/share/txr/stdlib/match.tl @@ -661,7 +661,7 @@ (set exp ^(unless ,rest-temp ,exp))) (unless (zerop counter) - (set exp ^(unless ,result-temp ,exp))) + (set exp ^(unless ,matched-p-temp ,exp))) exp)))) ^(lambda (,*fix-arg-temps ,*(if opt-arg-temps |