September 11, 2014 [phobos] [D-Programming-Language/phobos] cb5d83: Fix issue #13352 - Only perform Algebraic arithmet... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/phobos Commit: cb5d83dad9c22e973f494006e874771eddf833dc https://github.com/D-Programming-Language/phobos/commit/cb5d83dad9c22e973f494006e874771eddf833dc Author: Sönke Ludwig <sludwig@rejectedsoftware.com> Date: 2014-09-10 (Wed, 10 Sep 2014) Changed paths: M std/variant.d Log Message: ----------- 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 Commit: 7b805bde94588dc95c43c85cfaa4f85c108f99b9 https://github.com/D-Programming-Language/phobos/commit/7b805bde94588dc95c43c85cfaa4f85c108f99b9 Author: Sönke Ludwig <sludwig@rejectedsoftware.com> Date: 2014-09-10 (Wed, 10 Sep 2014) Changed paths: M std/variant.d Log Message: ----------- Use VariantException instead of a bare Exception. Commit: fd5ff8a70475b8741b5195ed5aa684ef62d22db9 https://github.com/D-Programming-Language/phobos/commit/fd5ff8a70475b8741b5195ed5aa684ef62d22db9 Author: Sönke Ludwig <sludwig@rejectedsoftware.com> Date: 2014-09-10 (Wed, 10 Sep 2014) Changed paths: M std/variant.d Log Message: ----------- Use positional arguments for format(). Commit: 6c04790e41716774c30245750d382b4a6033da8d https://github.com/D-Programming-Language/phobos/commit/6c04790e41716774c30245750d382b4a6033da8d Author: Sönke Ludwig <sludwig@rejectedsoftware.com> Date: 2014-09-10 (Wed, 10 Sep 2014) Changed paths: M std/variant.d Log Message: ----------- Don't throw static exceptions. Commit: c9d8ee5b2f9a8ca937704b8f7a9800c949dc16d9 https://github.com/D-Programming-Language/phobos/commit/c9d8ee5b2f9a8ca937704b8f7a9800c949dc16d9 Author: Sönke Ludwig <sludwig@rejectedsoftware.com> Date: 2014-09-11 (Thu, 11 Sep 2014) Changed paths: M std/variant.d Log Message: ----------- Code clean up. Commit: 67db0d68a78d48b0c2b3c2b6cbe9b8ee8ad855d6 https://github.com/D-Programming-Language/phobos/commit/67db0d68a78d48b0c2b3c2b6cbe9b8ee8ad855d6 Author: Andrej Mitrovic <andrej.mitrovich@gmail.com> Date: 2014-09-11 (Thu, 11 Sep 2014) Changed paths: M std/variant.d Log Message: ----------- Merge pull request #2452 from s-ludwig/issue_13352 Fix issue #13352 - Only perform Algebraic arithmetic with allowed types. Compare: https://github.com/D-Programming-Language/phobos/compare/a62bed4c8888...67db0d68a78d |
Copyright © 1999-2021 by the D Language Foundation