Re: batching gets and searching



> In C enums simply are not distinct types from int, so there's no
> additional violation; in C++ the result of a bunch of enum values |'d
> together is not typesafe in the same sense void* isn't.

I'm pretty sure ANSI C doesn't guarantee that variables of enum type
can hold integer values that don't correspond to members of the
enumeration. (Not that you'll ever find a compiler that won't allow
this.)

-- Dan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]