From 3b795875bc7ab25e5cfa02f74b1a4428af4c0ec4 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 28 Oct 2015 05:50:39 -0700 Subject: 2295 - drop first-class recipes and continuations Making life too complex at this time. --- 034call.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to '034call.cc') diff --git a/034call.cc b/034call.cc index b799b594..ee554ab6 100644 --- a/034call.cc +++ b/034call.cc @@ -90,7 +90,6 @@ if (Recipe.find(inst.operation) == Recipe.end()) { } :(replace{} "default:" following "End Primitive Recipe Implementations") default: { - const instruction& call_instruction = current_instruction(); if (Recipe.find(current_instruction().operation) == Recipe.end()) { // duplicate from Checks // stop running this instruction immediately ++current_step_index(); @@ -103,12 +102,8 @@ default: { assert(Trace_stream->callstack_depth < 9000); // 9998-101 plus cushion } Current_routine->calls.push_front(call(current_instruction().operation)); - finish_call_housekeeping(call_instruction, ingredients); - continue; // not done with caller; don't increment current_step_index() -} -:(code) -void finish_call_housekeeping(const instruction& call_instruction, const vector >& ingredients) { // End Call Housekeeping + continue; // not done with caller; don't increment current_step_index() } :(scenario calling_undefined_recipe_fails) -- cgit 1.4.1-2-gfad0