Open jidibinlin opened 2 years ago
This is WAI, if you macroexpand the define enum youll see
(defconstant +finish+ 5)
and
(defconstant +finish+ 2)
easiest fix is to a) Give them the same value b) but them inside a message
For b: define message SAS { enum SAStage { READY = 0; SIGN_UP = 1; GROUP = 2; TOP32 = 3; FINAL = 4; FINISH = 5; CANCEL = 6; } } so you should get +sas.finish+
Also in the readme: Each numeric enum value is also bound to a constant by the same name but with "+" on each side:
Also in the readme: Each numeric enum value is also bound to a constant by the same name but with "+" on each side:
I think prefix enum constants with the enum name is a batter choice.
I think you're right. Precluding having two enum values with the same name at top-level isn't good.
fs-boss-stronghold-event`s finish conflict with sa-stags`s finish
and got this error