From 7fb1017bb7c7d24eab8991a2bae46212336e89db Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 7 Dec 2017 16:04:47 -0800 Subject: 4153 --- 076continuation.cc | 5 +++-- 1 file 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 -- cgit 1.4.1-2-gfad0