On Nov 10, 2007 2:45 AM, Ge Wang &lt;<a href="mailto:ge@ccrma.stanford.edu">ge@ccrma.stanford.edu</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><div class="Ih2E3d"><br></div>Definitely an essential feature. &nbsp;Dynamic/resizable arrays are currently<br>not in the language, but we recently implemented it in ChucK and are<br>currently in the testing phase. &nbsp;Most likely it will be in the next
<br>release.<br><br></blockquote><div><br>Ha! New address, all settled in? :-)<br><br>If you remember a while back I had some questions about the .cap() of multi-dimensional arrays? Well, back then I did some poking around and it seems we sorta kinda do have resizable arrays;
<br><br>int foo[8]; <br><br>1 =&gt; foo[1];<br>&lt;&lt;&lt;foo.cap()&gt;&gt;&gt;;<br><br>foo.cap(12);<br>&lt;&lt;&lt;foo.cap()&gt;&gt;&gt;; //should be 12<br><br>//now for the bad news<br>&lt;&lt;&lt;foo[1]&gt;&gt;&gt;; //will be zero, sadly
<br><br><br>So, with a garbage-generating copy to a temporary array inbetween we could re-size arrays right now (that&#39;s not to say I wouldn&#39;t love a &quot;real&quot; implementation too)<br><br><br>Not on my home compur(s) couldn&#39;t couldn&#39;t test but this should run.
<br><br><br>Yours,<br>Kas.<br></div></div>