using enums for flags

Simen Kjærås simen.kjaras at gmail.com
Thu Jan 26 08:28:09 PST 2012


On Thu, 26 Jan 2012 00:49:58 +0100, Trass3r <un at known.com> wrote:

>> In the codebase I have to work with, having the same enum specified in
>> different places is rather common. Yeah, I hate it. This means I might
>> have a filter defined using one enum, and the value to filter being a
>> different type with the same values.
>
> Why don't you fix it then?

I'm not allowed to. The project I'm on has its tasks, and fixing things
in other projects is not one of them, especially when such an easy
workaround exists.


More information about the Digitalmars-d mailing list