- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
I'm getting a "wrong [size]" error.
Here's the code:
This is perplexing, because I read in the manual you can use constants in arrays. I don't see why the arithmetic functions can't be used to compute the array size either...
I'm getting a "wrong [size]" error.
Here's the code:
JASS:
library myLib
globals
constant integer I = 10
constant integer J = 10
endglobals
struct myStruct
integer array ij[I * J] //this gives the error
endstruct
endlibrary
This is perplexing, because I read in the manual you can use constants in arrays. I don't see why the arithmetic functions can't be used to compute the array size either...