On Wed, 25 Jan 2012 03:22:03 +0100, Trass3r <u...@known.com> wrote:

Does it really make sense to allow bitwise operations on different enums?

Maybe. Certainly sometimes, but those could just as easily use casts.


There should at least be some way to get this straight without having to resort to a heap of code like in C++: http://www.artima.com/cppsource/safelabels.html

Well, it may be a heap of code, but it's a lot less than what you linked.
Example attached. It's WTFPL or freer, so feel free to use it as you wish.

Attachment: flags.d
Description: Binary data

Reply via email to