[Issue 10476] New: Allow array operations with implicit casts
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 26 09:08:50 PDT 2013
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 at puremagic.com
ReportedBy: r.97all at gmail.com
--- Comment #0 from Ryuichi OHORI <r.97all at 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: -------
More information about the Digitalmars-d-bugs
mailing list