digitalmars.D.bugs - [Issue 10025] New: Implicit conversion for bigint array append
- d-bugmail puremagic.com (27/27) May 03 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10025
- d-bugmail puremagic.com (14/16) Aug 02 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10025
http://d.puremagic.com/issues/show_bug.cgi?id=10025 Summary: Implicit conversion for bigint array append Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc import std.bigint: BigInt; void main() { auto p = new BigInt[1]; p[0] = BigInt(1); // OK p[0] = 1; // OK p ~= BigInt(1); // OK p ~= 1; // Error } DMD 2.063beta: test.d(7): Error: cannot append type int to type BigInt[] -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 03 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10025 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yebblies gmail.com Component|Phobos |DMD Severity|normal |enhancementp[0] = 1; // OKThis is assignment, so it works.p ~= 1; // ErrorThis would be implicit construction of a BigInt from an int. That makes this an enhancement request for implicit construction on append. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 02 2013