David,
Hi Chuckists,A question about arrays in Chuck: the manual briefly mentions "functions that have arrays as arguments or return type" but I can't seem to find an actual example of a function with an array as a return type. Does anyone know if this works, or there is a way to make it work?If I call the function below, for instance, I get a "NullPointerException: (array access)" when I do anything with the result:fun float[] t(float x,float nn[]) {
float rr[];
for(0 => int n;n<nn.size();n++) {
nn[n] + x => rr[n];
}
return rr;
}Yours truly,David-------------------------------------------------------------------Dr. David Ogborn, Assistant Professor
Communication Studies & MultimediaDirector, Cybernetic Orchestra & ESP Studio
_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users