bcc icon indicating copy to clipboard operation
bcc copied to clipboard

Feature request for using an enum value within an enum

Open davecamp opened this issue 1 year ago • 0 comments

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.

davecamp avatar Jul 28 '23 10:07 davecamp