continuations

Can call-with-current-continuation be implemented only with lambdas and closures?

Does anyone know if call/cc can be implemented with just lambdas and closures? It seems that call/cc interrupts the program's flow (like an exception) but lambdas and closures can't do that. Therefore I think call/cc can't be implemented via lambdas and closures. Any more ideas? ...

Equivalent of Scheme's dynamic-wind in Ruby

Ruby has continuations... does it have a dynamic-wind construct like Scheme? ...

Find all elements in BST satisfying f using success continuations in SML

Hi, I have an assignment to do and I can't figure out how to do one question. Here is what I have to do: " Write a function which collects all elements in the tree T which satisfies the property p and returns it. Traverse the tree in inorder. Find all elements in BST satisfying f using success continuations.". I did the following: da...

DWR + terracotta+ jetty working together

Hi, I have project where we use DWR for comet, and Jetty because of continuations feature. My problem is, that we also use terracotta for clustering. And terracotta supports only Jetty 6.x but not Jetty 7, and DWR is best with Jetty 7 continuations. When I run terracotta with Jetty 7 it throws java.lang.IllegalStateException: This clas...

Uses for Scala continuations

How are people using continuations on a larger and smaller scale in Scala? Are any parts of the Scala standard library written in CPS? Are there any major performance penalties in using continuations? ...