Bit operator conversions
    Kagamin 
    spam at here.lot
       
    Wed Apr  8 09:06:48 PDT 2009
    
    
  
Sergey Gromov Wrote:
> Mon, 06 Apr 2009 08:53:41 -0400, Kagamin wrote:
> 
> > Is it valid for this to compile:
> > ---
> > ushort a(ushort b) pure nothrow
> > 	{ return b<<10|b; }
> > ---
> > 
> > And for this to not compile:
> > ---
> > ushort a(ushort b) pure nothrow
> > 	{ return b<<10; }
> > ---
> > ?
> 
> They both compile with 2.026.  What's your problem?
Could you please check bug http://d.puremagic.com/issues/show_bug.cgi?id=2809 with your dmd 2.026? It can be regression.
    
    
More information about the Digitalmars-d-learn
mailing list