June 26, 2013 [Issue 10476] New: Allow array operations with implicit casts | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10476 Summary: Allow array operations with implicit casts Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: r.97all@gmail.com --- Comment #0 from Ryuichi OHORI <r.97all@gmail.com> 2013-06-26 09:08:49 PDT --- import std.stdio; void main() { int[] a; a.length = 3; uint[] b; b.length = 3; a[] += b[]; // Error: incompatible types for ((a[]) += (b[])): 'int[]' and 'uint[]' } issue 2434 states that we need a way to add _explicit_ casts into arary operation. IMO implicit casts are more frequently used and important. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation