[r6rs-discuss] [Formal] SRFI-39 should be made an R6RS library

Michael Sperber sperber at informatik.uni-tuebingen.de
Wed Feb 21 13:05:32 EST 2007


"R. Kent Dybvig" <dyb at cs.indiana.edu> writes:

>> So, in effect, parameters give you thread-local cells, right?
>>
>> (define (make-thread-cell v) (make-parameter v))
>> (define (thread-cell-ref c) (c))
>> (define (thread-cell-set! c v) (c v))
>
> Yes, if although in Chez Scheme you have to replace make-parameter with
> make-thread-parameter.  Thread parameters *are* thread-local cells.

Then the relevant section of our paper is directly applicable.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla



More information about the r6rs-discuss mailing list