[Issue 2949] New: array.length not an lvalue
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 7 01:30:22 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2949
Summary: array.length not an lvalue
Product: D
Version: 2.029
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: ghaecker at idworld.net
int[] a = [1,2,3,4,5,6];
//a.length -= 3; // Error: a.length is not an lvalue.
a.length = 3; // Ok, it is an lvalue.
It should work both ways.
--
More information about the Digitalmars-d-bugs
mailing list