[Issue 4077] Bugs caused by bitwise operator precedence

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 12 06:42:59 PDT 2010


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



--- Comment #7 from Adam D. Ruppe <destructionator at gmail.com> 2010-04-12 06:42:57 PDT ---
(In reply to comment #4)
> My experience shows that it's easy to forget bugs, because they are seen as
> something negative, so I suggest you to write them down :-)

Aye, probably true. I think another reason why too is I usually put the
parenthesis around it all the time - probably one of those things I started
doing a long time ago after being hit by the bug, then over the years did out
of habit without remembering specifically why I started in the first place.

Requiring parenthesis or changing the precidence would be nice in any case.
There's no cost I can see (outside of implementing it in the compiler, of
course), and even a small benefit is better than none.

-- 
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