Enumeration with Support of "With"
Posted: Fri Sep 25, 2015 10:38 am
Almost always enumerations have something common prepended, like:
How about making it easier on the eyes (and more intuitive to modify) by introducing an extra keyword like "With". The following example would create the same constants as above:
By the way: When I checked if this was already requested, I noticed that there are a couple of threads for binary enumeration. Now that we have EnumerationBinary (PB5.40), they can be marked as [Implemented]. 
Code: Select all
Enumeration
#NAMESPACE_MY_CONSTANT_ONE
#NAMESPACE_MY_CONSTANT_TWO
#NAMESPACE_MY_CONSTANT_THREE
EndEnumeration
Code: Select all
Enumeration With NAMESPACE_MY_CONSTANT_
#ONE
#TWO
#THREE
EndEnumeration
