in reply to Double your return!!!!
There's a paper on continuations here. It mentions Scheme, which is where I recall hearing of these sorts of things. I haven't programmed Scheme, but my rather weak understanding of continuations is that they're similar to C's setjmp/longjmp except that you can longjmp back to a location even if it's in a function that's already returned. I think Forth also has the ability to alter the calling stack in a way that does this sort of thing but I may be wrong.
Here's another interesting read that should make your head hurt a little.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Double your return, In forth!
by xmath (Hermit) on Feb 19, 2003 at 08:24 UTC | |
|
Re: Re: Double your return!!!!
by bsb (Priest) on Feb 19, 2003 at 05:39 UTC |