From dea902172dd62d14eebc5fed9e11542ebcdc88e6 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 27 Apr 2016 15:40:46 -0700 Subject: 2875 --- html/055recipe_header.cc.html | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'html/055recipe_header.cc.html') diff --git a/html/055recipe_header.cc.html b/html/055recipe_header.cc.html index 93acb6c8..ccdee487 100644 --- a/html/055recipe_header.cc.html +++ b/html/055recipe_header.cc.html @@ -398,7 +398,7 @@ Transform.push_back(//: One final convenience: no need to say what to return if the information is //: in the header. -:(scenario reply_based_on_header) +:(scenario return_based_on_header) def main [ 1:number/raw <- add2 3, 5 ] @@ -463,7 +463,7 @@ def add2 a:number, b:number +mem: storing 3 in location 1 +mem: storing -2 in location 2 -:(scenario reply_on_fallthrough_based_on_header) +:(scenario return_on_fallthrough_based_on_header) def main [ 1:number/raw <- add2 3, 5 ] @@ -475,7 +475,7 @@ def add2 x:number, y:number +transform: instruction: reply {z: "number"} +mem: storing 8 in location 1 -:(scenario reply_on_fallthrough_already_exists) +:(scenario return_on_fallthrough_already_exists) def main [ 1:number/raw <- add2 3, 5 ] @@ -489,6 +489,18 @@ def add2 x:number, y:number -transform: instruction: reply z:number +mem: storing 8 in location 1 +:(scenario return_after_conditional_reply_based_on_header) +def main [ + 1:number/raw <- add2 3, 5 +] +def add2 x:number, y:number -> z:number [ + local-scope + load-ingredients + z <- add x, y # no type for z + return-if 0/false, 34 +] ++mem: storing 8 in location 1 + :(scenario recipe_headers_perform_same_ingredient_check) % Hide_errors = true; def main [ -- cgit 1.4.1-2-gfad0