On Nov 10, 2007 2:45 AM, Ge Wang <<a href="mailto:ge@ccrma.stanford.edu">ge@ccrma.stanford.edu</a>> 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. 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. 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 => foo[1];<br><<<foo.cap()>>>;<br><br>foo.cap(12);<br><<<foo.cap()>>>; //should be 12<br><br>//now for the bad news<br><<<foo[1]>>>; //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's not to say I wouldn't love a "real" implementation too)<br><br><br>Not on my home compur(s) couldn't couldn't test but this should run.
<br><br><br>Yours,<br>Kas.<br></div></div>