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

2013-11-18 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11188 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc ---

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

2013-11-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11188 --- Comment #8 from Simen Kjaeraas simen.kja...@gmail.com 2013-11-03 13:25:17 PST --- Adding this overload to std.math is a workaround for the problems with shared: Num abs(Num)(shared Num x) @safe pure nothrow if

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

2013-11-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11188 --- Comment #7 from Joseph Rushton Wakeling joseph.wakel...@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

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

2013-11-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11188 Simen Kjaeraas simen.kja...@gmail.com changed: What|Removed |Added Keywords||pull

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

2013-10-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11188 --- Comment #2 from Joseph Rushton Wakeling joseph.wakel...@webdrake.net 2013-10-10 11:23:53 PDT --- (In reply to comment #1) Does std.math.abs even work for anything other than built-in types currently? I know it should, but I'm

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

2013-10-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11188 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx ---

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

2013-10-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11188 --- Comment #3 from hst...@quickfur.ath.cx 2013-10-10 11:36:03 PDT --- (In reply to comment #2) I'll give that a go and if it works, send a patch to Phobos. Thanks for the thought. Incidentally, shouldn't in be sufficient there for the

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

2013-10-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11188 --- Comment #4 from Joseph Rushton Wakeling joseph.wakel...@webdrake.net 2013-10-10 11:47:51 PDT --- Tweaking std.math.abs to accept an inout input results in the following error when I added a regular BigInt to the unittests:

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

2013-10-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11188 --- Comment #5 from Joseph Rushton Wakeling joseph.wakel...@webdrake.net 2013-10-10 17:33:40 PDT --- (In reply to comment #3) In this case, you need inout, because you want to propagate the incoming qualifiers to the output: if x=0, then