D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 10476 - Allow array operations with implicit casts
Summary: Allow array operations with implicit casts
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
: 10152 (view as issue list)
Depends on:
Blocks:
 
Reported: 2013-06-26 09:08 UTC by Ryuichi OHORI
Modified: 2024-12-13 18:08 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Ryuichi OHORI 2013-06-26 09:08:49 UTC
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.
Comment 1 yebblies 2013-11-21 07:36:32 UTC
*** Issue 10152 has been marked as a duplicate of this issue. ***
Comment 2 dlangBugzillaToGithub 2024-12-13 18:08:34 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/17595

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB