bcc
bcc copied to clipboard
Feature request for using an enum value within an enum
Feature Request
This would be nice if this compiled
Enum SomeFlag
FlagA = 1
FlagB = 2
FlagC = 4
FlagAll = SomeFlag.FlagA | SomeFlag.FlagB | SomeFlag.FlagC
EndEnum
Currently it gives an error 'Compile Error: Cyclic declaration of 'SomeFlag'.' which is fair enough.
And it's not a big deal to work around of course. Just food for thought as the values are only constants.