[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ANN] Guile Hoot 0.4.1 released!
From: |
Thompson, David |
Subject: |
Re: [ANN] Guile Hoot 0.4.1 released! |
Date: |
Tue, 30 Apr 2024 12:27:10 -0400 |
Hi Vivien,
On Tue, Apr 30, 2024 at 12:06 PM Vivien Kraus <vivien@planete-kraus.eu> wrote:
>
> Le mardi 30 avril 2024 à 11:40 -0400, Thompson, David a écrit :
> > * Initial support for Guile's define-module syntax. Currently limited
> > to #:pure modules as Hoot does not yet provide the (guile) module
> > which is implicitly imported by impure modules.
>
> Could you briefly explain how we can make such a pure module, but which
> exports something? I tried to add #:pure to a module of mine, and it
> complains that I’m calling define…
Here's a short example from the game jam template:
https://gitlab.com/spritely/guile-hoot-game-jam-template/-/blob/main/modules/dom/document.scm?ref_type=heads
I suspect the issue is that you are not importing (scheme base) which
provides the 'define' syntax and all the basic Scheme stuff. A pure
module assumes nothing.
> Thank you for the release anyway.
:)
Hope this helps!
- Dave