unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: 亚光唐 <texnician@gmail.com>
Cc: bug-guile@gnu.org
Subject: Re: guile 2.0.1 fluid *current-language* failed to initialize in multi-thread app
Date: Mon, 30 May 2011 10:57:18 +0200	[thread overview]
Message-ID: <m3wrh8o9ap.fsf@unquote.localdomain> (raw)
In-Reply-To: <BANLkTi=Lradp7V8G99rSx9mE73QaBDa3Rw@mail.gmail.com> ("亚光唐"'s message of "Mon, 30 May 2011 01:16:44 +0800")

On Sun 29 May 2011 19:16, 亚光唐 <texnician@gmail.com> writes:

> I print out the call stack and check the source code, I found that the
> *current-language*
> variable is '#f" in the child thread. I think there must be something wrong.

You're right, the initial value of fluids in threads that are not
spawned from a Guile thread is #f.  I think this is a bug, but it's
longstanding behavior, so we can't change it in 2.0 I think (or can
we?).

But anyway, the rest of the code is usually careful to provide a default
value if a fluid is #f, but not so in this case it seems.  Thanks for
the report; will fix.

Cheers,

Andy
-- 
http://wingolog.org/



  reply	other threads:[~2011-05-30  8:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-29 17:16 guile 2.0.1 fluid *current-language* failed to initialize in multi-thread app 亚光唐
2011-05-30  8:57 ` Andy Wingo [this message]
2011-06-17 17:57 ` Andy Wingo

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=m3wrh8o9ap.fsf@unquote.localdomain \
    --to=wingo@pobox.com \
    --cc=bug-guile@gnu.org \
    --cc=texnician@gmail.com \
    /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).