- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
I was just curious how VJASS handles all the constant globals that are declared.
For example, suppose I have three constant global integers, with different names, but the same value. Does VJASS just collapse them all to a single constant global variable?
I've been using constant integers for all my important indices or values, and a lot of these tend to be 0 or 1, e.g. "QUIT_BTTN" is equal to 0, as it denotes which button in a dialog is the exit button.
What about constant strings? For example, I might use constant strings in a dialog system, since it makes it easy to modify how the speech looks (I just modify the strings in the globals section, rather than search through the actual script and change the DisplayText calls).
I was just curious how VJASS handles all the constant globals that are declared.
For example, suppose I have three constant global integers, with different names, but the same value. Does VJASS just collapse them all to a single constant global variable?
I've been using constant integers for all my important indices or values, and a lot of these tend to be 0 or 1, e.g. "QUIT_BTTN" is equal to 0, as it denotes which button in a dialog is the exit button.
What about constant strings? For example, I might use constant strings in a dialog system, since it makes it easy to modify how the speech looks (I just modify the strings in the globals section, rather than search through the actual script and change the DisplayText calls).