Just started playing around with pas2js and got stuck with Multi-Dimensional Arrays. I get '
Error: Cannot nest anonymous array' with the following:
Var
Multi_Array: Array of Array of Array of Integer;
I can bypass with the following code:
Type Multi_Array_Level_02 = record
M_Array_Level_02: Array of Integer;
end;
Type Multi_Array_Level_01 = record
M_Array_Level_01: Array of Multi_Array_Level_02;
end;
Var
Multi_Array: Array of Multi_Array_Level_01;
I also skimmed through the 'Pas2JS-WebGL demo' to see if there was a piece of code using Multi-Dimensional Arrays. But I spotted this comment in '
Mat4.pas'
// NOTE: [][] doesn't typecast to array of syntax so we need this
So is Multi-Dimensional Arrays not supported in pas2js just yet, or is it my programming skills that needs some adjustment?