• 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.

Is it possible to get upper and lower bounds?

Status
Not open for further replies.
Level 18
Joined
Jan 21, 2006
Messages
2,552
Well the lower bounds of an array is always 0, the only variable component of an array is its size; which in JASS, is always 8191.

If you're going to be using an array for a "stack" as Bribe mentioned, then you'll have to use an integer to keep track of the used array bounds; this value will need to be updated when parts are added/removed from the array.
 
Status
Not open for further replies.
Top