using opAssign or having my own assign function

Martin d Anjou point14 at magma.ca
Sat Sep 8 01:18:25 PDT 2007


> void main()
> {
>     auto a = BitVector!(4)();
>     auto b = BitVector!(10)();
>     auto c = BitVector!(79)();
>     writefln("A");
>     a = b + c;
>     writefln("B");
>     c = b + c;
> }

Nice. I got it to work too. Can the declaration look more like a built-in 
(more user friendly), e.g. "BitVector!(4) bv;"?

Thanks,
Martin



More information about the Digitalmars-d mailing list