HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

arrays in jass

11-25-2009, 12:40 AM#1
mystafox
Hi,
what's the point in declaring an array variable with size if the real size is always 8192?
i.e.:

integer array A
integer array A[50]
11-25-2009, 01:11 AM#2
Deaod
Depends on where you do it.

You need to specify the size of an array inside structs. You also need to specify the size of an array if you want to exceed 8191 indices.

Note that this is only needed in combination with vJass. Normal JASS doesnt support that kind of syntax.
11-25-2009, 01:38 AM#3
mystafox
ok i see the reasons now, thanks
11-25-2009, 02:12 AM#4
DioD
just look at code after compilation

array over 8189 is multiple arrays with service functions to shift over arrays.