bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#63196: Further on this error message


From: Christopher Lam
Subject: bug#63196: Further on this error message
Date: Mon, 1 May 2023 10:44:18 +0800

The source seems to be sxpath.scm -- see "yikes" error which triggers when n is -2 -4 -6 etc. I don't know how to build guile from sources and cannot debug further.


(define (node-pos n)
  (lambda (nodeset)
    (cond
     ((not (nodeset? nodeset)) '())
     ((null? nodeset) nodeset)
     ((eqv? n 1) (list (car nodeset)))
     ((negative? n) ((node-pos (+ n 1 (length nodeset))) nodeset))
     (else
      (or (positive? n) (error "yikes!"))
      ((node-pos (1- n)) (cdr nodeset))))))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]