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

From: R. Kent Dybvig <dyb>
Date: Wed Feb 21 12:55:35 2007

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

Kent
Received on Wed Feb 21 2007 - 12:55:28 UTC

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