Re: Setting variables in declarative modules

2024-11-01 Thread Mikael Djurfeldt
One additional comment regarding this: The first definition in your example, Tommi, isn't required. The order of the definitions don't matter as long as a variable reference isn't required to compute the value being defined. In your case, the variable references aren't resolved until the procedure

Re: Setting variables in declarative modules

2024-11-01 Thread Thompson, David
Hi Tommi, On Thu, Oct 31, 2024 at 10:30 PM Tommi Höynälänmaa wrote: > > Suppose that I have the following code in a Guile module: > --- > (define fw-proc #f) > > (define (my-proc x) > (display (fw-proc x))) > > (define (fw-proc x) > (cons x x)) > --- > > Can I declare the module as declar