Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Additions to C

Name: Anonymous 2009-11-10 4:15

What do you want in the next C standard? For me it's namespaces, damn they make libraries simple.

Name: Anonymous 2009-11-10 16:16

>>30
You stuff the coroutine's state inside the stack frame of the function that calls it (within something(), in my example).
Isn't this quite a limitation that normal coroutine support doesn't have? Why does each call to a coroutine have to happen from the same function? Why can't several different functions call a coroutine? Why can't the coroutine be thread-safe?

No, to implement coroutines properly you need to do what Knuth said; get rid of the stack.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List