:(scenario call_literal_recipe)
recipe main [
1:number <- call f:recipe, 34:literal
]
recipe f [
2:number <- next-ingredient
reply 2:number
]
+mem: storing 34 in location 1
:(scenario call_variable)
recipe main [
1:recipe-ordinal <- copy f:recipe
2:number <- call 1:recipe-ordinal, 34:literal
]
recipe f [
3:number <- next-ingredient
reply 3:number
]
+mem: storing 34 in location 2
:(before "End Mu Types Initialization")
Type_ordinal["recipe"] = 0;
type_ordinal recipe_ordinal = Type_ordinal["recipe-ordinal"] = Next_type_ordinal++;
Type[recipe_ordinal].name = "recipe-ordinal";
:(before "End Reagent-parsing Exceptions")
if (r.properties.at(0).second.at(0) == "recipe") {
r.set_value(Recipe_ordinal[r.name]);
return;
}
:(before "End Primitive Recipe Declarations")
CALL,
:(before "End Primitive Recipe Numbers")
Recipe_ordinal["call"] = CALL;
:(before "End Primitive Recipe Implementations")
case CALL: {
assert(scalar(ingredients.at(0)));
Current_routine->calls.push_front(call(ingredients.at(0).at(0)));
ingredients.erase(ingredients.begin());
goto complete_call;
}