Definitely an essential feature. Dynamic/resizable arrays are currently
not in the language, but we recently implemented it in ChucK and are
currently in the testing phase. Most likely it will be in the next
release.
Ha! New address, all settled in? :-)
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;
int foo[8];
1 => foo[1];
<<<foo.cap()>>>;
foo.cap(12);
<<<foo.cap()>>>; //should be 12
//now for the bad news
<<<foo[1]>>>; //will be zero, sadly
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)
Not on my home compur(s) couldn't couldn't test but this should run.
Yours,
Kas.