- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
When I try to use a 2-D array as a struct field, I get an error: "Unexpected [10]"
where the array is "integer array m[5][10]"
I suspect this is an oversight by how the structs are made, since everything becomes an array.
However, 2-D arrays work fine in global blocks...
So how can I use the 2-D array syntax without using the simulation trick? Does someone have a working version where 2-D arrays are allowed as struct fields...
When I try to use a 2-D array as a struct field, I get an error: "Unexpected [10]"
where the array is "integer array m[5][10]"
I suspect this is an oversight by how the structs are made, since everything becomes an array.
However, 2-D arrays work fine in global blocks...
So how can I use the 2-D array syntax without using the simulation trick? Does someone have a working version where 2-D arrays are allowed as struct fields...