diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-12-07 16:04:47 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-12-07 16:04:47 -0800 |
commit | 7fb1017bb7c7d24eab8991a2bae46212336e89db (patch) | |
tree | 33ba657f0c87b6a7214d77d3cf71bd0d370adb21 | |
parent | 20252c5eec133d80d3cf8376fcc03dd17d119b5f (diff) | |
download | mu-7fb1017bb7c7d24eab8991a2bae46212336e89db.tar.gz |
4153
-rw-r--r-- | 076continuation.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/076continuation.cc b/076continuation.cc index 32b40d54..d6059c22 100644 --- a/076continuation.cc +++ b/076continuation.cc @@ -163,8 +163,9 @@ case RETURN_CONTINUATION_UNTIL_MARK: { } :(before "End Primitive Recipe Implementations") case RETURN_CONTINUATION_UNTIL_MARK: { - // first clear any existing ingredients, to isolate the creation of the - // continuation from its calls + // I don't know how to think about next-ingredient in combination with + // continuations, so seems cleaner to just kill it. Functions have to read + // their inputs before ever returning a continuation. Current_routine->calls.front().ingredient_atoms.clear(); Current_routine->calls.front().next_ingredient_to_process = 0; // copy the current call stack until the most recent marked call |