1 ;;; Pattern matching with `(ice-9 match)'.
4 (use-modules (ice-9 match)
5 (srfi srfi-9)) ;; record type (FIXME: See `t-records.scm')
7 (define-record-type <stuff>
10 (chbouib stuff:chbouib stuff:set-chbouib!))
12 (define (matches? obj)
13 ; (format #t "matches? ~a~%" obj)
22 (and (matches? (%make-stuff 12))
23 (matches? (%make-stuff 7))