Guile compiler is unable to compile tiny program:
(define (fn l)
(define (ok l)
(or (and (pair? l) l)
(error "list is empty")))
(cons (reverse (car l)) (ok l)))
amaya@picasso:~/tmp/guile-3.0.9
$ ../prefix/bin/guile ~/tmp/guile-compiler-bug.scm
;;; note: auto-compilati
On Wed, Mar 08, 2023 at 02:07:56PM +0300, var-vniiaes--- via Bug reports for
GUILE, GNU's Ubiquitous Extension Language wrote:
>
> Guile compiler is unable to compile tiny program:
>
> (define (fn l)
> (define (ok l)
> (or (and (pair? l) l)
> (error "list is empty")))
>
writes:
>> (define (fn l)
>> (define (ok l)
>> (or (and (pair? l) l)
>> (error "list is empty")))
>> (cons (reverse (car l)) (ok l)))
> (so in my case it's 25 instead of 22). Interestingly, my version also
> produces warnings about possibly unbound variables). If I ente