Anyway, what would the following yield?
(define x 0)
(define p
(delay
(if (= x 5)
x
(begin
(set! x (+ x 1))
(force p)
(set! x (+ x 1))
x))))
(force p) => 10 (maybe?)
(force p) => ????
So: in case of a recursion, does it return the same value as the first
returning external (force p) - which yields 10 - or the same value as
the first returning internal (force p) - which (I think) should yield
5?
You know, I don't really know of a good use in applications of
re-entrant promises.
_______________________________________________ Scheme-reports mailing list Scheme-reports@x http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports