• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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