[Issue 11188] std.math.abs fails for shared, const or immutable BigInt types

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 2 04:55:36 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11188



--- Comment #7 from Joseph Rushton Wakeling <joseph.wakeling at webdrake.net> 2013-11-02 04:55:32 PDT ---
(In reply to comment #6)
> This pull solves some of the problems in this issue. Shared is more
> complicated, so will have to wait.

Thanks very much Simen -- there are some aspects of your fix that I would not
have thought of myself, but now that I've seen them, they are obvious things to
watch out for, so I really appreciate not only the solution but also the
insight gained thereby :-)

I agree that shared is a bigger issue than just BigInt and any fix for it needs
to wait for shared itself to be properly sorted out.  See also:
https://github.com/D-Programming-Language/phobos/pull/1616#issuecomment-25865836

... for earlier discussion.

I'll give your code a test and see how it plays with std.rational, which was
the original project from which awareness of this issue arose.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list