Hi, all. I'm playing around with a BigRational struct to get more comfortable
with D.
The plan:
Allow binary operators so that a BR (BigRational) is the lhs and one of {BR,
BigInt, int, long} is the rhs.
So BR(5) + 2 compiles just as well as BR(5)+BR(2)
Here's the opBinary code I've worked out:
Big
Charles McAnany:
> My issue here is that I have already used the exact same syntax in the first
> unit test as my code for the ++ overload has, but here it fails me. (Plus, why
> is line 166 having trouble with opBinary? ++ is unary, no?
> Any ideas?
In similar situations I suggest you to keep re
> It sees the post-increment fires the opBinary template too. I think this is a
> front-end bug, for Bugzilla if confirmed and not already present.
http://d.puremagic.com/issues/show_bug.cgi?id=5551