Nasty -O bug

bobef bobef at abv-nospam.bg
Wed Jan 16 10:56:43 PST 2008


downs Wrote:

> 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

"if (p.cmd == (FOCUS_LOST|SINKING))" works.


More information about the Digitalmars-d-bugs mailing list