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

From: R. Kent Dybvig <dyb>
Date: Wed Feb 21 11:39:10 2007

> Just as a quick clarification: if, in the scenario below, thread T2
> uses parameterize to change P1 and P2 before invoking K1 (instead of
> mutation), then the values seen by the whatever's left to be done in
> the continuation K1 would be 0 and 1, not 2 and 2, right?

If you mean that code executed in K1 would see P1=1 and P2=0, then you are
correct. Parameterize affects only the code in its continuation, and the
continuation in T2 that parameterizes P1 and P2 is aborted when K1 is
invoked, so the code executed in K1 sees the original value of P2 and the
T1-parameterized value of P1.

Kent
Received on Wed Feb 21 2007 - 11:38:44 UTC

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