1
vote
reset and shift only one level deep (delimited continuations)?
I think you might be misreading those rewrite rules.
A call to shift will find to the nearest enclosing call to reset, regardless of how deeply nested it is. Other examples in the tutorial you linked ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
scheme × 6lisp × 3
lambda-calculus × 2
computability × 1
pl.programming-languages × 1
functional-programming × 1
denotational-semantics × 1
recursion × 1
operational-semantics × 1
continuations × 1