Bug 9432 – Some missing bitwise BigInt operators

Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-01-31T02:15:00Z
Last change time
2013-02-01T00:17:34Z
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2013-01-31T02:15:10Z
import std.bigint: BigInt; void main() { BigInt a = 100; uint b = 200; a |= b; BigInt c = 200; a |= c; a = a | c; } DMD 2.062alpha: test.d(5): Error: 'a |= b' is not a scalar, it is a BigInt test.d(5): Error: incompatible types for ((a) |= (b)): 'BigInt' and 'uint' test.d(7): Error: 'a |= c' is not a scalar, it is a BigInt test.d(7): Error: 'a' is not of integral type, it is a BigInt test.d(7): Error: 'c' is not of integral type, it is a BigInt test.d(8): Error: 'a' is not of integral type, it is a BigInt test.d(8): Error: 'c' is not of integral type, it is a BigInt
Comment #1 by clugdbug — 2013-02-01T00:17:34Z
*** This issue has been marked as a duplicate of issue 9061 ***