Enumeration
Posted: Wed Aug 10, 2011 6:26 pm
Hi,
I am sure I posted this already, but couldn't find it on the forum so here it is again.
Jack now has over 550 constants for various elements of the program and its a bitch to maintain them, I am not looking forward to sorting them out so atm I generally whack a new constant at the end, but I would like to better group the constants sequentially so I can a) completely make use of >= and <= in conditional checks and b) make it more concise and legible.
When Allanon do you hope to introduce an Enum command?
Of course I want to be able to specify the start value so I can group constants together with more freedom and less unnecessary maintainence.
At the moment without Enum the situation is a real headache.
Eg.
Enum #IMAGETOBMP = 0, #IMAGETOGIF, #IMAGETOIFF, #IMAGETOJPG, #IMAGETOPNG, #IMAGETOWEBP
Enum #DOCUMENTICON = 6, #IMAGESICON, #MUSICICON, #VIDEOICON
I am sure I posted this already, but couldn't find it on the forum so here it is again.
Jack now has over 550 constants for various elements of the program and its a bitch to maintain them, I am not looking forward to sorting them out so atm I generally whack a new constant at the end, but I would like to better group the constants sequentially so I can a) completely make use of >= and <= in conditional checks and b) make it more concise and legible.
When Allanon do you hope to introduce an Enum command?
Of course I want to be able to specify the start value so I can group constants together with more freedom and less unnecessary maintainence.
At the moment without Enum the situation is a real headache.
Eg.
Enum #IMAGETOBMP = 0, #IMAGETOGIF, #IMAGETOIFF, #IMAGETOJPG, #IMAGETOPNG, #IMAGETOWEBP
Enum #DOCUMENTICON = 6, #IMAGESICON, #MUSICICON, #VIDEOICON