Re: enum options

new topic     » goto parent     » topic index » view thread      » older message » newer message

Matt:

What I was trying to point out was that the way being discussed was tto complicated and confusing for a user.

Hers is a simple idea.

The reserved word enum would be considered as a constant and have 2 forms.

enum or global enum depending on its scope.

example :

enum 1 <<== this value following enum is the increment or decrement value. foo = 0, <<== sets the starting point apple, banna, <<== each coma causes an increment orange, barr, beer, <<== this is 5 beef = 23, <<== this changes our count value telephone, <<== this is 24 bicycle; <<== semicolon ends the enumeration

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu