"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
Received on Wed Feb 21 2007 - 13:05:32 UTC