Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow array operations with implicit casts #17595

Open
dlangBugzillaToGithub opened this issue Jun 26, 2013 · 1 comment
Open

Allow array operations with implicit casts #17595

dlangBugzillaToGithub opened this issue Jun 26, 2013 · 1 comment

Comments

@dlangBugzillaToGithub
Copy link

Ryuichi OHORI reported this on 2013-06-26T09:08:49Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=10476

CC List

  • yebblies

Description

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.
@dlangBugzillaToGithub
Copy link
Author

yebblies commented on 2013-11-21T07:36:32Z

*** Issue 10152 has been marked as a duplicate of this issue. ***

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant