[Issue 7081] New: BigInt array slice int assignment
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 8 04:50:24 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7081
Summary: BigInt array slice int assignment
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: enhancement
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2011-12-08 04:50:23 PST ---
To manage BigInt arrays in a handy way (and in a way uniform with arrays of
integers), I'd like this code to work:
import std.bigint;
void main() {
BigInt[5] arr;
arr[] = 1; // line 4
arr[1 .. 3] = 2; // line 5
}
But with dmd 2.057beta it gives:
test.d(4): Error: cannot implicitly convert expression (1) of type int to
BigInt[]
test.d(5): Error: cannot implicitly convert expression (2) of type int to
BigInt[]
--
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