Re: custom module loading and compilation

2024-05-23 Thread Paul Jarc
I wrote: > This works when I run Guile with --no-auto-compile, but with > compilation enabled, I get: > ;;; Unbound variable: my-load > How can I make the binding visible to the compiler? In case anyone else runs into this: I solved it by wrapping the definition of my-load in (eval-when (expand ev

Re: cond clause does not allow definitions

2024-05-23 Thread Pierpaolo Bernardi
On Thu, May 23, 2024 at 4:25 PM Damien Mattei wrote: > On Thu, May 23, 2024 at 12:37 AM Jeronimo Pellegrini wrote: >> On 2024-05-22 18:07, Pierpaolo Bernardi wrote: >> > In chez: >> > >> >> (cond (else (define x 7) x)) >> > 7 >> >> x >> > 7 >> > >> > which looks like a bug to me. > yes i spent m

Re: cond clause does not allow definitions

2024-05-23 Thread Damien Mattei
On Thu, May 23, 2024 at 12:37 AM Jeronimo Pellegrini wrote: > On 2024-05-22 18:07, Pierpaolo Bernardi wrote: > > In chez: > > > >> (cond (else (define x 7) x)) > > 7 > >> x > > 7 > > > > which looks like a bug to me. yes ,unless they wanted Chez scheme to behave as Python :-) : if True: x

Re: equality of syntax objects

2024-05-23 Thread Damien Mattei
On Thu, May 23, 2024 at 12:12 AM Maxime Devos wrote: > > So, instead of checking identifiers with free-identifier=?, instead try > ‘syntax->datum’ to extract the name (with lexical information removed) + > ‘eq?’ (to compare two symbols). > :-O yes. i did not think it.it is the first year i use '