unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Threads and lexical scope
@ 2014-01-14 13:52 Panicz Maciej Godek
  2014-01-14 14:01 ` Panicz Maciej Godek
  0 siblings, 1 reply; 4+ messages in thread
From: Panicz Maciej Godek @ 2014-01-14 13:52 UTC (permalink / raw)
  To: guile-user@gnu.org

[-- Attachment #1: Type: text/plain, Size: 558 bytes --]

Hi,
I've been investigating the behaviour of threads created in the same
lexical scope, and I have to admit that I'm a little puzzled.
The documentation states, that the "call-with-new-thread" procedure calls
its argument in a new thread and with a new dynamic state, the latter being
described in more detail with the introduction of the notion of fluids.

Nothing is being said regarding the behaviour of new thread with respect to
the current lexical scope.

The test program below shows, that each thread obtains its own copy of a
current lexical scope:

[-- Attachment #2: Type: text/html, Size: 670 bytes --]

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

end of thread, other threads:[~2014-01-14 14:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-14 13:52 Threads and lexical scope Panicz Maciej Godek
2014-01-14 14:01 ` Panicz Maciej Godek
2014-01-14 14:10   ` Panicz Maciej Godek
2014-01-14 14:28     ` Panicz Maciej Godek

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