continuation
I've been trying to understand the concept of continuation passing style and I get it to a point. But most of the code examples I find are in languages that I'm not familiar with, such as Scheme. CPS can apparently be used with C and if I could find some code examples in C, that would help a lot. And if anyone could make book suggestions (I've done some searching on Safari and Amazon, and saw a couple that might deal with this topic on some level) or any other sources, that would be great, too.
|
I think making it work in C would also require a return statement, or just void functions:
Code:
void function2(int aArg) ta0kira Edit: You can overcome the stack problem like this: Code:
void function1(int aArg) PS I just learned this in response to your question, so I may have misinterpreted the concept. |
All times are GMT -5. The time now is 08:17 PM. |