Re: cond clause does not allow definitions
Pierpaolo Bernardi <[email protected]>
| Newsgroups | gmane.lisp.guile.user |
|---|---|
| Message-ID | <CANY8u7E3gTQpdwBh-XZq9YUQMg5aufNr1XxZPrE8Abz0VbNRWg@mail.gmail.com> |
On Wed, May 22, 2024 at 10:08 PM Jeronimo Pellegrini <[email protected]> wrote: > A: (cond (#t (define x 7) x)) > B: (cond (else (define x 7) x)) > > | system | A | B | > |-------------|-------|-------| > | Bigloo | 7 | 7 | > | Biwa | 7 | 7 | > | Chez | error | 7 | > | Chibi | error | 7 | In chez: > (cond (else (define x 7) x)) 7 > x 7 which looks like a bug to me. You may check if x is defined outside of the cond expression in the other implementations which do not raise an error too?