[plt-scheme] frtime qn - behaviour depending on evt & another behaviour

From: Noel Welsh (noelwelsh at gmail.com)
Date: Tue Jul 29 08:55:52 EDT 2008

This looks like a typo:

(define b (collect-b evt 100 (λ(e old) (+ a old))))

It should be (+ e old), right?

N.

2008/7/29 harsha <harsha.v.r at gmail.com>:
> hi,
>  i was surprised by how the following program behaved and was
> wondering about what the semantics of a behaviour whose definition
> depends on an event and another behaviour.
>
> (define evt (event-receiver))
> (define a (hold evt 0))
> (define b (collect-b evt 100 (λ(e old) (+ a old))))

Posted on the users mailing list.