reinterpret array

anonymous via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jan 13 12:11:44 PST 2015


On Tuesday, 13 January 2015 at 20:00:57 UTC, Dominikus Dittes 
Scherkl wrote:
> So if I have a function that allowes to do this:
>
> uint a;
> a.bit[16] = true;
> writeln(a); // 65536
>
> Is it also already available?

a |= 1 << 16;


More information about the Digitalmars-d-learn mailing list