[Issue 5409] Disallow (!x & y)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 25 15:56:38 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5409
--- Comment #6 from bearophile_hugs at eml.cc 2011-11-25 15:55:36 PST ---
One more example found in the Doom3 sources:
http://www.viva64.com/en/b/0120/
#define BIT( num ) ( 1 << ( num ) )
const int BUTTON_ATTACK = BIT(0);
void idTarget_WaitForButton::Think( void ) {
...
if ( player &&
( !player->oldButtons & BUTTON_ATTACK ) &&
( player->usercmd.buttons & BUTTON_ATTACK ) ) {
...
}
I hope people like Kenji Hara will create a patch to fix this situation in D
language.
--
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