Hi all,

admitt this is a case of garbage-in-garbage out.

A `cond` (or `case`) expression with an `else` branch behaves odd when an empty sequence of expression is given in the `else` branch: it results in an unbound variable "else" at runtime.

Attached a test case.  Try

$ csc unboundvariableelse.scm
$ ./unboundvariableelse

Best

/Jörg
(module
 foo
 *
 (import scheme)
 (define (bar x)
   (cond ;; same for `case` here
    (else #;unbound)))
 )

(import foo)

(display (bar #t))
_______________________________________________
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to