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

From: Michael Sperber <sperber>
Date: Wed Feb 21 13:05:38 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
Received on Wed Feb 21 2007 - 13:05:32 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC