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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Ryuichi OHORI <[email protected]> 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: -------