Wiki

Ticket #203 (closed enhancement: fixed)

Opened 15 years ago

Last modified 14 years ago

Should allow declaration of comma seperated enum element list

Reported by: hopscc Owned by: Chuck
Priority: medium Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:

Description

For a simple list of enum elements the one entry per line restriction is unnecessarily onerous/verbose.
Would be convenient to also support a comma separated list

e.g.

enum Days
    Mon, Tues, Wed, Thur, Fri, Sat

and

enum Days 
   Sat=1, Sun
   Mon, Tue, Wed, Thu, Fri

Attachments

enums-comma-sep.patch Download (2.3 KB) - added by hopscc 15 years ago.

Change History

Changed 15 years ago by hopscc

Changed 15 years ago by hopscc

  • owner set to Chuck
  • status changed from new to assigned

patch and tests

Changed 14 years ago by Chuck

Sounds good.

Changed 14 years ago by Chuck

  • status changed from assigned to closed
  • resolution set to fixed

Patch applied in changeset:2385

Thanks

Note: See TracTickets for help on using tickets.