Streams library 2.0 development, part 1

I’ve been trying again to fix the use of upvars in stream functions, as yet without any success. I’ve reduced the issue even more:

vs.

So if the upvar is re-created (as an upvar with the same name) between creation and evaluation of the stream, apparently the reference (as part of the function) to the original upvar gets lost, or something.

Could you or Jens try to analyze what happens, and what can be done about it?

The code is here, withn the “upvars issue” sprite.