Removing length* references in match, making match.sld portable R7RS.

This commit is contained in:
Alex Shinn 2012-11-28 21:30:12 +09:00
parent 36bc32c13d
commit 3b232b241c
2 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,7 @@
(define-library (chibi match)
(export match match-lambda match-lambda* match-let match-letrec match-let*)
(import (chibi))
(cond-expand
(chibi (import (chibi)))
(else (import (scheme base))))
(include "match/match.scm"))

View file

@ -522,9 +522,9 @@
;; remaining list length so we don't need any backtracking
(match-verify-no-ellipses
r
(let* ((tail-len (length* 'r))
(let* ((tail-len (length 'r))
(ls v)
(len (and (list? ls) (length* ls))))
(len (and (list? ls) (length ls))))
(if (or (not len) (< len tail-len))
fk
(let loop ((ls ls) (n len) (id-ls '()) ...)