[e-lang] Should local promises respond to __whenMoreResolved on resolution?

Mark Miller erights at gmail.com
Sun Sep 9 14:21:45 EDT 2007


On 9/9/07, Kevin Reid <kpreid at mac.com> wrote:
> 1. Alice and Carol have local promises. Alice has a CapTP reference
> to Carol's promise.
>
> 2. Alice sends her promise to Bob. Her local comm system sends
> __whenMoreResolved to the promise with the redirector as reactor. The
> message is queued in the local resolver.
>
> 3. Alice resolves her local promise to (her proxy for) Carol's
> promise; the WMR message is forwarded to her proxy-for-Carol.
>
> Nothing here causes a Promise3Desc to be sent to Bob's redirector for
> his proxy of Alice's promise.

In step #3, when Alice's proxy for Carol's promise receives the WMR
message, it sees that its reactor argument is a proxy for an object of
Bob's. So, rather than forwarding the WMR message to Carol, the proxy
instead sends a notification to (Alice's proxy for) Bob's reactor,
with the argument on the notification being (Alice's proxy for)
Carol's promise. This is serialized as a Promise3Desc sent to Bob's
redirector.

But I know you already know all this, so I'm probably confused about
something. What am I missing?

-- 
Text by me above is hereby placed in the public domain

    Cheers,
    --MarkM


More information about the e-lang mailing list