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

[Solved] constant question

Status
Not open for further replies.

ABM

ABM

Level 7
Joined
Jul 13, 2005
Messages
279
Hi,

i have declared constant "without filter public or private" in a Library
i used the constant in the library but i know i can also use the constant outside the library...

[Jass=]
library
globals
constant integer ARIA_ID = 'h012'
endglobals
[/code]

but how should i call the constant?

just use " ARIA_ID " instead of the integer 'h012' directly?
even if i use it in any triggers outside library?
 
Level 2
Joined
Sep 23, 2012
Messages
8
its usually a good idea to put some prefix on a non private variable like the first letters of your system's name in lowercase this way it wont interfere with other variables with the same name
 
Status
Not open for further replies.
Top