bmx-ng / bcc

A next-generation bcc parser for BlitzMax
zlib License
33 stars 13 forks source link

Feature request for using an enum value within an enum #630

Open davecamp opened 1 year ago

davecamp commented 1 year ago

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.