Hi Tommi,

On Thu, Oct 31, 2024 at 10:30 PM Tommi Höynälänmaa
<tommi.hoynalan...@gmail.com> 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 declarative?

Yes, this is fine. If you put this in a module file and compile it,
Guile does not issue any warnings. `define` is not `set!`. (Modules
are declarative by default, btw.)

- Dave

Reply via email to