statecharts icon indicating copy to clipboard operation
statecharts copied to clipboard

Enable enums in interface declarations

Open benedekh opened this issue 8 years ago • 2 comments

Dear All,

I was wondering, why are enums not enabled by default in interface declarations? I would like to define an enum for Directions, and its values could be: TOP, STRAIGHT, DIVERGENT. It would look prettier in the generated code.

Now the workaround for the problem is to introduce three readonly integer variables, that are generated in the source code as long fields without setter methods, since they are "constants".

Regards, Ben

benedekh avatar Mar 04 '16 22:03 benedekh

@benedekh this would indeed be a nice feature, we will schedule this request for one of the upcoming milestones.

andreasmuelder avatar Mar 06 '16 11:03 andreasmuelder

Related feature request: #165

benedekh avatar Mar 11 '16 16:03 benedekh