We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is code like this meant to work? It's useful code: void main() { int[2] data = [10, 20]; double[2] result; result[] = data[] * 0.5; } DMD 2.063beta5 gives: test.d(4): Error: incompatible types for ((data[]) * (0.5)): 'int[]' and 'double'
The text was updated successfully, but these errors were encountered:
https://github.com/dlang/dmd/pull/4218
Sorry, something went wrong.
void f() { ubyte[] a; char[] b; a[]=b[]; } Error: cannot implicitly convert expression `b[]` of type `char[]` to `ubyte[]`
Hmm... vector ops are array ops?
No branches or pull requests
bearophile_hugs reported this on 2013-05-23T15:34:00Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=10157
CC List
Description
Is code like this meant to work? It's useful code: void main() { int[2] data = [10, 20]; double[2] result; result[] = data[] * 0.5; } DMD 2.063beta5 gives: test.d(4): Error: incompatible types for ((data[]) * (0.5)): 'int[]' and 'double'The text was updated successfully, but these errors were encountered: