www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10476] New: Allow array operations with implicit casts


           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

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: -------
Jun 26 2013