unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#36915: make-thread-local-fluid ignores the default value
@ 2019-08-03 22:46 Caleb Ristvedt
  2020-01-12 21:27 ` Andy Wingo
  0 siblings, 1 reply; 2+ messages in thread
From: Caleb Ristvedt @ 2019-08-03 22:46 UTC (permalink / raw)
  To: 36915

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-12 21:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-03 22:46 bug#36915: make-thread-local-fluid ignores the default value Caleb Ristvedt
2020-01-12 21:27 ` Andy Wingo

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).