diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-07-13 20:53:41 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-07-13 20:53:41 -0700 |
commit | 83fcebf3210b638d9f8248e0007e9f0c9804980a (patch) | |
tree | 95c4855bef341e1d46eb4725b54a3eaaf6858f08 /html/036call_reply.cc.html | |
parent | 8b9f1750c74c7d3cca99d6949a90cd61eb8e0218 (diff) | |
download | mu-83fcebf3210b638d9f8248e0007e9f0c9804980a.tar.gz |
1778
Diffstat (limited to 'html/036call_reply.cc.html')
-rw-r--r-- | html/036call_reply.cc.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/html/036call_reply.cc.html b/html/036call_reply.cc.html index 2738d935..ab73fdb7 100644 --- a/html/036call_reply.cc.html +++ b/html/036call_reply.cc.html @@ -64,7 +64,7 @@ case REPLY: <span class="Delimiter">{</span> <span class="Comment">// just in case 'main' returns a value, drop it for now</span> if <span class="Delimiter">(</span>Current_routine<span class="Delimiter">-></span>calls<span class="Delimiter">.</span>empty<span class="Delimiter">())</span> <span class="Identifier">goto</span> stop_running_current_routine<span class="Delimiter">;</span> const instruction& caller_instruction = current_instruction<span class="Delimiter">();</span> - <span class="Comment">// make reply results available to caller</span> + <span class="Comment">// make reply products available to caller</span> copy<span class="Delimiter">(</span>ingredients<span class="Delimiter">.</span>begin<span class="Delimiter">(),</span> ingredients<span class="Delimiter">.</span>end<span class="Delimiter">(),</span> inserter<span class="Delimiter">(</span>products<span class="Delimiter">,</span> products<span class="Delimiter">.</span>begin<span class="Delimiter">()));</span> <span class="Comment">// check that any reply ingredients with /same-as-ingredient connect up</span> <span class="Comment">// the corresponding ingredient and product in the caller.</span> @@ -105,7 +105,7 @@ recipe f [ <span class="Comment">//: In mu we'd like to assume that any instruction doesn't modify its</span> <span class="Comment">//: ingredients unless they're also products. The /same-as-ingredient inside</span> <span class="Comment">//: the recipe's 'reply' will help catch accidental misuse of such</span> -<span class="Comment">//: 'ingredient-results' (sometimes called in-out parameters in other languages).</span> +<span class="Comment">//: 'ingredient-products' (sometimes called in-out parameters in other languages).</span> <span class="Delimiter">:(scenario reply_same_as_ingredient)</span> <span class="Special">% Hide_warnings = true;</span> |