[Stackless] Stackless API
oren-slp at hishome.net
Mon Feb 2 22:02:51 CET 2004
On Mon, Feb 02, 2004 at 09:27:10PM +0100, Christian Tismer wrote:
> >>I think that exceptions on channels are more useful than just closure
> >>notification, but I think the implementation should be changed to make
> >>these exceptions travel out-of-band from the data.
> This is what I didn't understand.
> Travel when, and how?
> At the moment, exceptions are like
> data that explodes. I agree to split
> implementations of send and send_exception,
> but I still don't see what the desired behavior
> is, exactly.
What you currently have is a channel that is not really transparent. It
discriminates data by its type: it examines the data and if it's
explosive it lights the fuse. The desired behavior is that send() will
allow any data through, whether it is explosive or not. The
send_exception() method will accept only explosives but light the fuse,
so it explodes when it reaches the receiving side. This requires an
extra bit of out-of-band data to be carried by the channel in addition
to the object: the fuse_is_lit flag.
Stackless mailing list
Stackless at stackless.com
More information about the Stackless