From 99a95383cf405ab0284f98adda41ab4989d9a038 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Wed, 23 Oct 2019 14:25:21 +0200 Subject: Rebase srfi-35 conditions on top of make-record-type * module/srfi/srfi-35.scm: Import (ice-9 match), and remove now-unused srfi-1 import. (print-condition): Print more like records, as appears to be the intention. (&condition): Define using make-record-type. Adapt all callers. Also, compound conditions are now a disjoint type, handled specially by condition-ref, condition?, and so on. * test-suite/tests/srfi-35.test (v3): Fix an error in which a subcondition was initialized without initializers for all of its fields. --- test-suite/tests/srfi-35.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test-suite/tests') diff --git a/test-suite/tests/srfi-35.test b/test-suite/tests/srfi-35.test index 5e4cb271e..df73c8442 100644 --- a/test-suite/tests/srfi-35.test +++ b/test-suite/tests/srfi-35.test @@ -203,7 +203,7 @@ (define v3 (condition (&c1 (x "V3/1") (a "a3")) - (&c2 (b "b3")))) + (&c2 (x #f) (b "b3")))) (define v4 (make-compound-condition v1 v2)) -- cgit v1.2.3