| To: | <scsh-bugs@zurich.ai.mit.edu> |
|---|---|
| Subject: | Fluids vs. Threads and Processes |
| From: | RT Happe <rthappe@mathematik.uni-freiburg.de> |
| Date: | Sun, 20 Oct 2002 21:52:47 +0200 (CEST) |
As of scsh-0.6.2, this
(let ((x (make-fluid 'foo)))
(let-fluid x 'bar
(lambda ()
(run (begin (display (fluid x))))
; (fork-thread (lambda () (display (fluid x))))
(display (fluid x))
(newline))))
prints "foobar", or "bar" and "foo" with the FORK-THREAD instead of the
RUN clause. While this may be a feature, it's not an evident one, and I
would like the S48 and Scsh manuals to point out the interactions of
fluid bindings and threads/processes. Presently they don't seem to do so.
(I didn't scrutinise them thoroughly.)
rthappe
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: run in define-syntax, RT Happe |
|---|---|
| Next by Date: | Re: run in define-syntax, David Rush |
| Previous by Thread: | run in define-syntax, Narang |
| Next by Thread: | Re: Fluids vs. Threads and Processes, Michael Sperber [Mr. Preprocessor] |
| Indexes: | [Date] [Thread] [Top] [All Lists] |