Frankly, I’m surprised how much interest
Continuations for Curmudgeons generated. I guess that
there was a demand for an explanation from the perspective of a C
bugs reported in
one section, I’ve updated it to reflect that what is
being described there is actually a closure, not a
continuation. I’ve also added a
section showing how classes are simply a special case of
Your description is a little more down-to-earth than most I’ve seen. I can understand popping references off the stack when a function returns. Most other explanations of continuations are just a bit more abstract and harder to connect with something I already get.
I still don’t grok them, but I think I understand them a little more now.