This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Doc for weak hashes


David Lutterkort <lutter@bluedwarf.cise.ufl.edu> writes:

> Now, if only somebody would explain fluids the same way I'd volunteer to do 
> the same thing to their mail ...

Ok, I put this on my mental TODO list.

As a little spoiler: Fluids are effectively thread-local, top-level
variables.  You should use them for global settings that have a
somewhat dynamic nature, like the print state or the current module.
In Guile, fluids are not really variables, tho.  They are implemented
as objects that are accessed with `fluid-ref' and `fluid-set!'.  The
rest is syntactic sugar.