GNU bug report logs - #36915
make-thread-local-fluid ignores the default value

Previous Next

Package: guile;

Reported by: Caleb Ristvedt <caleb.ristvedt <at> cune.org>

Date: Sat, 3 Aug 2019 22:47:01 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Caleb Ristvedt <caleb.ristvedt <at> cune.org>
To: bug-guile <at> gnu.org
Subject: make-thread-local-fluid ignores the default value
Date: Sat, 03 Aug 2019 17:46:19 -0500
In Guile 2.2.6 as packaged on Guix System (x86-64), the following
happens:

--------------------------------------
(define some-fluid (make-thread-local-fluid 42))

(display (fluid-ref some-fluid))

=> #f
--------------------------------------

The same problem doesn't happen with non-thread-local fluids. The manual
says pretty clearly "whose initial value is DFLT", so this should be a
bug.

This is especially significant because, if I understand correctly, that
"default" value is the initial value of that fluid in a new thread. So
just using fluid-set! immediately after creating it isn't sufficient to
work around it entirely.

- reepca




This bug report was last modified 5 years and 130 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.