On Jun 27, 2007, at 10:32 AM, Bradley Lucier wrote:
Marc:
Is there some combination of continuation-capture and continuation-graft that gives the semantics of call/ec?
Yes, since call/cc is built on top of the continution-XXX primitives and the following is a valid definition of call/ec:
The thing is that this implementation does not take advantage of the usage constraints of call/ec . It would be possible to implement call/ec in such a way that it does minimal heap allocation.