Bug 2949 – array.length not an lvalue

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2009-05-07T03:30:00Z
Last change time
2015-06-09T01:26:26Z
Assigned to
bugzilla
Creator
ghaecker

Comments

Comment #0 by ghaecker — 2009-05-07T03:30:33Z
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.
Comment #1 by dsimcha — 2009-05-07T08:06:46Z
*** This bug has been marked as a duplicate of 808 ***