On Oct 6, 2:42 am, John Rose <[email protected]> wrote:
> > 3) Can only the coroutine itself yield (shallow), or can any
> > subroutine invoked by the coroutine yield on its behalf (deep)?
>
> To do samefringe (and IMO be useful) you need deep coroutines. And:
> If coroutine C1 is going to call coroutine C2, which then will yield a
> value back to C1's original caller, must C1 be compiled specially,
> perhaps to call C2 via a special calling sequence? Or (this is
> Charlie's siloing problem, I think) can C1 (and its coder and its
> compiler) be ignorant of any coroutining, looking just like normal
> Java code that happens to call C2?
I think you have to statically mark one or the other of them, but I
don't think it matters much which one it is. C1 can say "I am
calling a coroutine" (so Lua), or C2 can say "I am a coroutine"
(so in CLU, the first language to do generators).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JVM
Languages" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jvm-languages?hl=en
-~----------~----~----~----~------~----~------~--~---