about summary refs log tree commit diff stats
path: root/html/036refcount.cc.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-05-27 08:02:29 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-05-27 08:02:29 -0700
commit4698dc0002c671b15eb0cb7d52d2a0fa470c5fde (patch)
tree358b412fc862a649c1c21fa0e01f1fd2f356680b /html/036refcount.cc.html
parenta791c04264433696635d598471f3004c97f9ad50 (diff)
downloadmu-4698dc0002c671b15eb0cb7d52d2a0fa470c5fde.tar.gz
3021
Diffstat (limited to 'html/036refcount.cc.html')
-rw-r--r--html/036refcount.cc.html7
1 files changed, 2 insertions, 5 deletions
diff --git a/html/036refcount.cc.html b/html/036refcount.cc.html
index 66136c91..e456934b 100644
--- a/html/036refcount.cc.html
+++ b/html/036refcount.cc.html
@@ -169,15 +169,12 @@ element<span class="Delimiter">.</span>value = address<span class="Delimiter">;<
 <span class="Delimiter">:(scenario refcounts_put_index)</span>
 def main [
   <span class="Constant">1</span>:address:number<span class="Special"> &lt;- </span><span class="Normal">new</span> number:type
-  <span class="Comment"># fake array because we can't yet create an array of addresses (wait for the</span>
-  <span class="Comment"># support for dilated reagents and parsing more complex type trees)</span>
-  <span class="Constant">1003</span>:number/<span class="Special">raw &lt;- </span>copy <span class="Constant">3</span>  <span class="Comment"># skip refcount at 1002</span>
-  <span class="Constant">2</span>:address:array:address:number<span class="Special"> &lt;- </span>copy <span class="Constant">1002</span>/unsafe
+  <span class="Constant">2</span>:address:array:address:number<span class="Special"> &lt;- </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 class="Constant">2</span>:address:array:address:number<span class="Special"> &lt;- </span>put-index *<span class="Constant">2</span>:address:array:address:number<span class="Delimiter">,</span> <span class="Constant">0</span><span class="Delimiter">,</span> <span class="Constant">1</span>:address:number
 ]
 <span class="traceContains">+run: {1: (&quot;address&quot; &quot;number&quot;)} &lt;- new {number: &quot;type&quot;}</span>
 <span class="traceContains">+mem: incrementing refcount of 1000: 0 -&gt; 1</span>
-<span class="traceContains">+run: {2: (&quot;address&quot; &quot;array&quot; &quot;address&quot; &quot;number&quot;)} &lt;- copy {1002: &quot;literal&quot;, &quot;unsafe&quot;: ()}</span>
+<span class="traceContains">+run: {2: (&quot;address&quot; &quot;array&quot; &quot;address&quot; &quot;number&quot;)} &lt;- new {(address number): &quot;type&quot;}, {3: &quot;literal&quot;}</span>
 <span class="traceContains">+mem: incrementing refcount of 1002: 0 -&gt; 1</span>
 <span class="traceContains">+run: {2: (&quot;address&quot; &quot;array&quot; &quot;address&quot; &quot;number&quot;), &quot;lookup&quot;: ()} &lt;- put-index {2: (&quot;address&quot; &quot;array&quot; &quot;address&quot; &quot;number&quot;), &quot;lookup&quot;: ()}, {0: &quot;literal&quot;}, {1: (&quot;address&quot; &quot;number&quot;)}</span>
 <span class="Comment"># put-index increments refcount</span>