enum
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Tue Apr 8 17:38:21 PDT 2014
On 4/8/14, 2:49 PM, Steven Schveighoffer wrote:
> On Tue, 08 Apr 2014 17:12:17 -0400, Walter Bright
> <newshound2 at digitalmars.com> wrote:
>
>> 6. An integral type, some of which have names:
>>
>> enum Color {
>> Red = 0xFF0000,
>> Green = 0x00FF00,
>> Blue = 0x0000FF00,
>> Fred = 0x123456,
>> White = 0xFFFFFF }
>
> That was Andrei's UserId example...
I'd say it's different because one would want operations on colors that
don't make sense on UserId.
Andrei
More information about the Digitalmars-d
mailing list