macro for enum operations

Guillaume Laurent glaurent at telegraph-road.org
Wed Sep 10 13:04:29 BST 2003


On Wednesday 10 September 2003 13:15, Lubos Lunak wrote:
>  Looks like a good idea, even though creating enum values that are not
> defined in the enum feels a bit scary, as enum is usually seen as 'one
> value from a set',

Actually an enum can have any value which can be represented by the number of 
bits of its largest defined value. So the boolean operators are perfectly 
legal.

-- 
				Guillaume
				http://www.telegraph-road.org




More information about the kde-core-devel mailing list