From 742f4908ae6b3f03930434594a56e5449e5fe4f2 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 29 Nov 2016 22:40:17 -0800 Subject: conformance: handle macro wrong clause syntax. Contrary to the documentation, handle doesn't in fact have the same syntax as catch. It passes the exception symbol to clauses as the leftmost argument, followed by the exception arguments, whereas catch passes only the exception arguments. * share/txr/stdlib/except.tl (handle): Do not pass the exception sybmol as the leftmost argument, unless operating in TXR 161 or earlier compatibility. * tests/012/except.tl: drop exception symbol argument from handle clause. * txr.1: Compatibility note added. --- tests/012/except.tl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/012') diff --git a/tests/012/except.tl b/tests/012/except.tl index 1eb85017..7fe9dad2 100644 --- a/tests/012/except.tl +++ b/tests/012/except.tl @@ -8,7 +8,7 @@ (test (handle (list (cont (throw 'd 1)) (cont (throw 'c 2))) - (a (exc arg) + (a (arg) (let ((cont (find-frame 'cont))) (if cont (progn -- cgit v1.2.3