unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: "Thompson, David" <dthompson2@worcester.edu>
To: Vivien Kraus <vivien@planete-kraus.eu>
Cc: Guile User <guile-user@gnu.org>
Subject: Re: [ANN] Guile Hoot 0.4.1 released!
Date: Tue, 30 Apr 2024 12:27:10 -0400	[thread overview]
Message-ID: <CAJ=RwfahETnEsvDoJ8CYX-0cQ+kK2UCtRxeNiBkB=7OE5QE0bQ@mail.gmail.com> (raw)
In-Reply-To: <00a64dc69d6c7c932ecf3e820534ffa0db81382a.camel@planete-kraus.eu>

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



      reply	other threads:[~2024-04-30 16:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-30 15:40 [ANN] Guile Hoot 0.4.1 released! Thompson, David
2024-04-30 16:06 ` Vivien Kraus
2024-04-30 16:27   ` Thompson, David [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ=RwfahETnEsvDoJ8CYX-0cQ+kK2UCtRxeNiBkB=7OE5QE0bQ@mail.gmail.com' \
    --to=dthompson2@worcester.edu \
    --cc=guile-user@gnu.org \
    --cc=vivien@planete-kraus.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).