[Issue 9061] BigInt | BigInt, BigInt & int
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 8 09:35:45 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=9061
--- Comment #15 from Simen Kjaeraas <simen.kjaras at gmail.com> 2013-11-08 09:35:43 PST ---
(In reply to comment #14)
> (In reply to comment #12)
> > (In reply to comment #10)
> > > (In reply to comment #9)
> > > > *and* sensible.
> > >
> > > I'm pretty sure the answer is that it should do the same thing as converting to
> > > BigInt, then performing the bitwise operation.
> >
> > That means example one is going to break. This is not in line with the
> > principle of least astonishment.
>
> Sure it is:
>
> import std.stdio;
>
> void main()
> {
> long a = 0xB16_B16_B16_B16_B16;
> uint b = 0x8000_0000;
> long c = a & ~b;
> writefln("%X", c);
> }
So it is. I retract my statements and will implement it like that, then.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list