[Issue 13352] Algebraic does not support binary arithmetic when omitting small number types

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Sep 11 01:53:45 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13352

--- Comment #4 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/cb5d83dad9c22e973f494006e874771eddf833dc
Fix issue #13352 - Only perform Algebraic arithmetic with allowed types.

Adds a static check allowed!T before trying any particular numeric type. Also
checks for an exact type match in case of a raw (non-Variant) operand and
prefers that to one of the fixed numeric types. Finally, it loosens the
restriction for opArithmetic to only work for equal Variant types.

Conflicts:
    std/variant.d

https://github.com/D-Programming-Language/phobos/commit/67db0d68a78d48b0c2b3c2b6cbe9b8ee8ad855d6
Merge pull request #2452 from s-ludwig/issue_13352

Fix issue #13352 - Only perform Algebraic arithmetic with allowed types.

--


More information about the Digitalmars-d-bugs mailing list