> 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

_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss

Reply via email to