On 4/9/2014 5:39 PM, Jonathan M Davis wrote:
On Wednesday, April 09, 2014 14:14:21 Andrei Alexandrescu wrote:
One wants to call a function taking such an enum. -- Andrei

But it _isn't_ going to be a valid enum value. IMHO, a function which is
taking or-ed flags where those flags are enums needs to take uint or ulong or
whatever the base type of the enum is and _not_ the enum type.

It makes perfect sense if you think of an enum as an integral type, some values of which have names, as in the "Color" example I posted earlier.

Reply via email to