To me it would seem more natural, in your example, to say comedy = 0, action = 1, drama = 2, and romance = 3, and this is often how enumerated types are implemented . talk ) 00 : 43, 1 March 2010 ( UTC)
32.
The enumerated type in C, specified with the enum keyword, and often just called an " enum " ( usually pronounced " ee'- num " / ?i . n?m / or " ee'- noom " / ?i . nu?m / ), is a type designed to represent values across a series of named constants.
33.
Instead, ( eql atom ), which is the equivalent to ( member atom ) may be used ( that is, only one member of the set may be specified with an eql type specifier, however, it may be used as a CLOS parameter specializer . ) In other words, to define methods to cover an enumerated type, a method must be defined for each specific element of that type.