Bit operator conversions

Kagamin spam at here.lot
Mon Apr 6 05:53:41 PDT 2009


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; }
---
?


More information about the Digitalmars-d-learn mailing list