[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] Re: calling the stream upon EventStreamPlayer-stop

On Dec 27, 2005, at 5:10 PM, ronald kuivila wrote:

Maybe we should have yieldTestForTermination(terminationFunction) to trap the nil returns.
That way, you can use embedInStream.  It seems to be generally useful.

Perhaps, but to be really thorough, it gets pretty tricky. I don't see a good way to handle it at this point, because Prout(ine) isn't the only problem. Any list pattern can return events, so would Pseq for example need to know whether it should check for termination on every yield?

Maybe the distinguishing factor is not what kind of pattern produces the stream, but the fact that the stream is used in an event stream player. ??


: H. James Harkins
: jamshark70@xxxxxxxxxxxxxxxxx
: http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman