[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: macro for enum operations
From:       Michael Matz <matz () kde ! org>
Date:       2003-09-11 16:03:57
[Download RAW message or body]

Hi,

On Thu, 11 Sep 2003, Lubos Lunak wrote:

>  Then the bitmask would fix it. Or even simpler, the macro could require
> that the enum has one entry with value 1 << 31 (or 1<<63, if the macro
> would use unsigned long long). That would also avoid the problem with
> extending the enum later.

In that case it's total nonsense to define your own operators.  The unary
and binary arithmetic operators are also defined on enumeration types.
What do we gain with defining our own anyway?


Ciao,
Michael.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic