• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[vJASS] Sized arrays

Status
Not open for further replies.
Level 17
Joined
Apr 27, 2008
Messages
2,455
If it's true that memory of jass arrays is allocated in power of 2 according to the highest index currently used, then it's the same with sized arrays.
Since sized arrays are nothing but arrays with pseudo size (you can go out of range), it is likely to depend the highest struct instance used.

Check the outputwar3map.j to see how the jass code is generated.

Now, frankly you don't really have to worry how much memory used in jass, especially for this. (except avoidable memory handle leaks)
 
Status
Not open for further replies.
Top