bug#62053: Guile compiler is unable to compile tiny program

2023-03-08 Thread Bug reports for GUILE, GNU's Ubiquitous Extension Language
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

bug#62053: Guile compiler is unable to compile tiny program

2023-03-08 Thread tomas
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"))) >   

bug#62053: Guile compiler is unable to compile tiny program

2023-03-08 Thread Dr. Arne Babenhauserheide
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