Problems with shift left operator (dmd 0.169)

Frank Benoit keinfarbton at nospam.xyz
Wed Oct 11 00:32:51 PDT 2006


http://www.digitalmars.com/d/expression.html#ShiftExpression
It's illegal to shift by more bits than the size of the quantity being
shifted.

That means, 32 is legal for shifting. And therefore it should evaluate
to the correct result.

So I think the example is a bug.



More information about the Digitalmars-d-learn mailing list