diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-11-01 03:41:16 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-11-01 03:41:16 -0700 |
commit | 850822ffbfd441d05161452be28b54f882b1b378 (patch) | |
tree | 7f2cb2ac13e4f64e48fee3f060d83c95b349d5e3 /html/057immutable.cc.html | |
parent | a6fe8e274683c14efc6585b1b566afe9abfea7d1 (diff) | |
download | mu-850822ffbfd441d05161452be28b54f882b1b378.tar.gz |
4102
Diffstat (limited to 'html/057immutable.cc.html')
-rw-r--r-- | html/057immutable.cc.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/html/057immutable.cc.html b/html/057immutable.cc.html index 50e9ad43..5058f120 100644 --- a/html/057immutable.cc.html +++ b/html/057immutable.cc.html @@ -298,7 +298,7 @@ if ('onhashchange' in window) { <span id="L234" class="LineNr">234 </span><span class="muRecipe">def</span> foo a:&:@:&:num [ <span id="L235" class="LineNr">235 </span> local-scope <span id="L236" class="LineNr">236 </span> load-ingredients -<span id="L237" class="LineNr">237 </span> <span class="Normal">b</span>:&:@:&:num<span class="Special"> <- </span><span class="Normal">new</span> <span class="Delimiter">{(</span>address number<span class="Delimiter">)</span>: type<span class="Delimiter">},</span> <span class="Constant">3</span> +<span id="L237" class="LineNr">237 </span> <span class="Normal">b</span>:&:@:&:num<span class="Special"> <- </span><span class="Normal">new</span> <span class="Delimiter">{(</span><a href='043space.cc.html#L83'>address</a> number<span class="Delimiter">)</span>: type<span class="Delimiter">},</span> <span class="Constant">3</span> <span id="L238" class="LineNr">238 </span> <span class="Comment"># modify b, completely unrelated to immutable ingredient a</span> <span id="L239" class="LineNr">239 </span> <span class="Normal">x</span>:&:num<span class="Special"> <- </span>index *b<span class="Delimiter">,</span> <span class="Constant">0</span> <span id="L240" class="LineNr">240 </span> *x<span class="Special"> <- </span>copy <span class="Constant">34</span> @@ -380,16 +380,16 @@ if ('onhashchange' in window) { <span id="L316" class="LineNr">316 </span><span class="Comment">//: when checking for immutable ingredients, remember to take space into account</span> <span id="L317" class="LineNr">317 </span><span class="Delimiter">:(scenario check_space_of_reagents_in_immutability_checks)</span> <span id="L318" class="LineNr">318 </span><span class="muRecipe">def</span> <a href='000organization.cc.html#L113'>main</a> [ -<span id="L319" class="LineNr">319 </span> <span class="Normal">a</span>:space<span class="Special"> <- </span><span class="Normal">new</span>-closure +<span id="L319" class="LineNr">319 </span> <span class="Normal">a</span>:space/names:<span class="Normal">new</span>-closure<span class="Special"> <- </span><span class="Normal">new</span>-closure <span id="L320" class="LineNr">320 </span> <span class="Normal">b</span>:&:num<span class="Special"> <- </span><span class="Normal">new</span> <span class="Constant">number:type</span> <span id="L321" class="LineNr">321 </span> run-closure b:&:num<span class="Delimiter">,</span> a:space <span id="L322" class="LineNr">322 </span>] <span id="L323" class="LineNr">323 </span><span class="muRecipe">def</span> <span class="Normal">new</span>-closure [ -<span id="L324" class="LineNr">324 </span> <span class="Normal">new</span>-<span class="Normal">default</span>-space +<span id="L324" class="LineNr">324 </span> local-scope <span id="L325" class="LineNr">325 </span> <span class="Normal">x</span>:&:num<span class="Special"> <- </span><span class="Normal">new</span> <span class="Constant">number:type</span> -<span id="L326" class="LineNr">326 </span> <span class="Identifier">return</span> <span class="Normal">default</span>-space +<span id="L326" class="LineNr">326 </span> <span class="Identifier">return</span> <span class="Normal">default</span>-space/names:<span class="Normal">new</span>-closure <span id="L327" class="LineNr">327 </span>] -<span id="L328" class="LineNr">328 </span><span class="muRecipe">def</span> run-closure x:&:num<span class="Delimiter">,</span> s:space [ +<span id="L328" class="LineNr">328 </span><span class="muRecipe">def</span> run-closure x:&:num<span class="Delimiter">,</span> s:space/names:<span class="Normal">new</span>-closure [ <span id="L329" class="LineNr">329 </span> local-scope <span id="L330" class="LineNr">330 </span> load-ingredients <span id="L331" class="LineNr">331 </span> <span class="Constant">0</span>:space/names:<span class="Normal">new</span>-closure<span class="Special"> <- </span>copy s |