unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: "Neil Jerram" <neiljerram@googlemail.com>
To: linasvepstas@gmail.com
Cc: "Ludovic Courtès" <ludo@gnu.org>, guile-user@gnu.org
Subject: Re: bug: defining things in different threads
Date: Sat, 15 Nov 2008 22:49:46 +0000	[thread overview]
Message-ID: <49dd78620811151449n57a0c448q20f94170bb51ff91@mail.gmail.com> (raw)
In-Reply-To: <3ae3aa420811120927m2248e87fiacf96fc701eecda1@mail.gmail.com>

2008/11/12 Linas Vepstas <linasvepstas@gmail.com>:

> Yes, of course, the problem remains.

Explanation:

Thread 1 is the first thread that does any Guile stuff, so it loads
boot-9.scm, which means that it ends up in the (guile-user) module.

Thread 2 hasn't done any (set-current-module ...), so it stays at the
default, which is (guile).

Solution: add (define-module (guile-user)) to the code that you
execute in thread 2.

Regards,
     Neil




  reply	other threads:[~2008-11-15 22:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-11 18:57 bug: defining things in different threads Linas Vepstas
2008-11-12 13:03 ` Ludovic Courtès
2008-11-12 17:27   ` Linas Vepstas
2008-11-15 22:49     ` Neil Jerram [this message]
2008-11-15 23:36       ` Linas Vepstas
2008-11-19 23:41         ` Neil Jerram
2008-11-20 18:21           ` Linas Vepstas
2008-11-20 23:23       ` Linas Vepstas
2008-11-21 15:39         ` Linas Vepstas

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=49dd78620811151449n57a0c448q20f94170bb51ff91@mail.gmail.com \
    --to=neiljerram@googlemail.com \
    --cc=guile-user@gnu.org \
    --cc=linasvepstas@gmail.com \
    --cc=ludo@gnu.org \
    /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).