[Issue 9061] BigInt | BigInt, BigInt & int
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 8 08:43:57 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=9061
--- Comment #14 from yebblies <yebblies at gmail.com> 2013-11-09 03:43:56 EST ---
(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);
}
--
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