[Issue 1600] New: Functions taking only one array cannot be called with property syntax
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 19 19:47:56 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1600
Summary: Functions taking only one array cannot be called with
property syntax
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: andrei at metalanguage.com
Consider:
void test(int[]) {}
void main()
{
int[] a;
test(a); // fine
a.test(); // fine
a.test; // error!
}
This irregularity should be fixed. One important reason for using the property
syntax is terseness.
--
More information about the Digitalmars-d-bugs
mailing list