Nasty -O bug

downs default_357-line at yahoo.de
Wed Jan 16 06:38:55 PST 2008


bobef wrote:
> Also this thing (no matter of the -O flag):
> 
> auto a=FOCUS_LOST|SINKING;
> if(p.cmd==a) {...}
> 
> works, but not this:
> 
> if(p.cmd==FOCUS_LOST|SINKING) {...}
> 

Purely out of interest, could you try this:
> if (p.cmd == (FOCUS_LOST|SINKING))

 --downs


More information about the Digitalmars-d-bugs mailing list