continuations
Scala implementation of C#-like yield with "for"
I\'m trying to use various Scala implementations of C#-like yield return (i.e. this one) with \"for\" -constructions such as:[详细]
2023-01-08 09:15 分类:问答Crash using Mono.Tasklets.Continuation
I\'m attempting to work on a microthread message passing library in C# using mono.Since Mono 2.4 or so, apparently continuations (not yield) have been available under \'Mono.Tasklets\'.However, these[详细]
2023-01-07 21:43 分类:问答Help with dynamic-wind and call/cc
I am having some trouble understanding the behavior of the following Scheme program: (define c (dynamic-wind[详细]
2023-01-03 12:40 分类:问答call/cc in Lua - Possible?
The Wikipedia article on Continuation says: \"In any language which supports closures, it is possible to write programs in continuation passing style and manually implement call/cc.\"[详细]
2022-12-30 00:04 分类:问答CPS/Continuations StackOverflowError on (tail-)recursive functions
is there any way to have a tail-recursive function inside CPS not throwing a StackOverflow? import scala.util.continuations._[详细]
2022-12-29 17:57 分类:问答nested CPS "reset"
using the CPS compiler-p开发者_运维知识库lugin of Scala 2.8, there are the two magic controls reset and shift. Reset delimits the continuation and shift captures the continuation.[详细]
2022-12-28 07:30 分类:问答Need help with Continuations-Error "found cps expression in non-cps position"
I try building the following simple Generator using the Scala 2.8 Continuations-PlugIn. Where does the following error come from?[详细]
2022-12-27 04:42 分类:问答Implementing Seq[T] for CPS-Classes
Having the following class which is in a CPS-context (@cps[Unit]) how would I implement the Seq-trait?[详细]
2022-12-27 04:04 分类:问答Continuation monad "interface"
The state monad \"interface\" class MonadState s m where get :: m s put :: s -> m () (+ return and bind) allows to construc开发者_运维知识库t any possible computation with State monad without us[详细]
2022-12-27 00:59 分类:问答Can continuations be used as a replacement for recursion?
The following function generate开发者_开发百科s a \'stack level too deep (SystemStackError)\' for n = 5,000[详细]
2022-12-23 17:37 分类:问答