Hi, using the CPS compiler-plugin of Scala 2.8, there are the two magic controls reset
and shift
. Reset delimits the continuation and shift captures the continuation.
There is an example of using CPS with NIO, using nested resets as a type of "forking"...? I don't exactly understand the purpose of nesting the resets, what's the effect?