Struct indexes are integers. (A struct compiles to an array)it should be a variable able to store struct data as in
JASS:local structname A set DATA[1] = A
EDIT: nvm i just figured it out, i have to use a keyword. However im still wondering, why isnt there a variable type able to store struct indexing
struct myStruct extends array
implement Alloc // My more efficient allocation and deallocation method that can be found in the Resource Submissions
// Your stuff here
endstruct
// You can now do things like myStruct data = myStruct.allocate(), data[1].data = 581