JASS:
struct XY extends array
integer array xy[10]
endstruct
is there a way to create a custom allocator for the arrays in order to be able to use them in array structs?
EDIT:
would solve it like this, but is there a way to use [] syntax without creating another struct?
JASS:
struct XY extends array
private static integer array xy_p
method get_xy takes integer i returns integer //method operator xy[] sadly cant be declared
return thistype.xy_p[i + 10*this]
endmethod
method set_xy takes integer i, integer x returns nothing
set thistype.xy_p[i + 10*this] = x
endmethod
endstruct