Forums

Comma separated enums

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Comma separated enums

Postby Charles » Sat Jun 05, 2010 9:36 am

# Thanks to a patch from hopscc, you can put enums on the same line:

enum Color
Red, Green, Blue

enum Numbers
One = 1, Two, Four = 4

# Previously they were required to be on separate lines:

enum Color
Red
Green
Blue

# You can do both:

enum Color
Red, Green
Blue, Yellow
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Comma separated enums

Postby todd.a » Tue Jun 08, 2010 9:35 am

Nice addition. Will help a lot with grouping.
todd.a
Site Admin
 
Posts: 81
Location: Chicago, IL


Return to Discussion

Who is online

Users browsing this forum: No registered users and 33 guests