[Issue 3927] New: array.length++; is an error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 10 10:12:02 PST 2010
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: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 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: -------
More information about the Digitalmars-d-bugs
mailing list