[chuck-users] Playing with fire

Tom Lieber tom at alltom.com
Sun Aug 23 21:56:11 EDT 2009

2009/8/22 Kassen <signal.automatique at gmail.com>:
>>  And I will also stipulate that some of my
>> problem may be with the documentation, but seriously how can a
>> language where I can't allocate an array who size is only known at
>> run-time be called friendly?
> Well, you can define a length zero array, then do lots of generative stuff
> while growing it by appending to it. Sadly that is not in the manual, you
> are right about that. It's just in the VERSIONS file and the examples
> directory.

Just to be specific:

int arr[0];
Std.rand2(0, 20) => arr.size;

Tom Lieber

More information about the chuck-users mailing list