digitalmars.D.bugs - Change in treatement of array literals
- Sean Kelly (8/8) Jan 18 2008 Previously, this worked just fine:
Previously, this worked just fine:
int[] buf = [1,2,3,4].dup;
Now, this line gives the error:
semicolon expected, not '.'
In order to duplicate array literals, they must now be enclosed in parens:
int[] buf = ([1,2,3,4]).dup;
Is this intended? And if so, why the change?
Sean
Jan 18 2008








Sean Kelly <sean f4.ca>