http://d.puremagic.com/issues/show_bug.cgi?id=3927
Summary: array.length++; is an error
Product: D
Version: 2.041
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2010-03-10 10:12:01 PST ---
With the following D2 program:
void main() {
int[] array;
array.length++;
array.length--;
}
The compiler shows the following errors, is this correct?
test1.d(3): Error: a.length is not an lvalue
test1.d(4): Error: a.length is not an lvalue
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------