[Issue 3483] Eliminate read-modify-write operations for enums

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 9 13:30:36 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=3483


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #6 from bearophile_hugs at eml.cc 2011-10-09 13:29:45 PDT ---
(In reply to comment #5)
> I'm going to reject this one. I'm not convinced it is a significant source of
> bugs, there are many legitimate uses of op= for enums, and the rather loose
> definition of them is traditional for C.

Time ago I have suggested a @flags attribute to be used on enums that you want
to use as bit fields. I vaguely agree with Andrei...

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list