You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import std.stdio;
void main()
{
int[] a; a.length = 3;
int[] b; b.length = 3;
// both of the following cause same error.
// Error: var has no effect in expression (c0)
a[] <<= b[];
a[] <<= 1;
// another error message.
// Error: 'a[]' is not of integral type, it is a int[]
a[] = a[] << 1;
a[] = a[] << b[];
}
I don't see why bit shift operation is not arrowed in array operations.
The text was updated successfully, but these errors were encountered:
Ryuichi OHORI reported this on 2013-06-26T09:15:07Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=10477
CC List
Description
import std.stdio; void main() { int[] a; a.length = 3; int[] b; b.length = 3; // both of the following cause same error. // Error: var has no effect in expression (c0) a[] <<= b[]; a[] <<= 1; // another error message. // Error: 'a[]' is not of integral type, it is a int[] a[] = a[] << 1; a[] = a[] << b[]; } I don't see why bit shift operation is not arrowed in array operations.The text was updated successfully, but these errors were encountered: