But Dan Friedman says...
(define receiver
(lambda (continuation)
(continuation continuation)))
(define tester
(lambda (continuation)
(writeln "beginning")
(call/cc continuation)
(writeln "middle")
(call/cc continuation)
(writeln "end")))
(tester (call/cc receiver)) =>
beginning
beginning
middle
beginning
end
We call it "Mondo Bizarro."
Steve "CPS that" Miale
-- Steven Miale - smiale@cs.indiana.edu | Don't blame me - Indiana University, Bloomington, IN | I voted Libertarian.