[Issue 3515] New: Disallow use of comma operator when declaring array dimension
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 16 13:39:26 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3515
Summary: Disallow use of comma operator when declaring array
dimension
Product: D
Version: 1.051
Platform: All
OS/Version: Linux
Status: NEW
Severity: trivial
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: procode at adam.com.au
--- Comment #0 from Justin Johansson <procode at adam.com.au> 2009-11-16 13:39:24 PST ---
Declaring an array using the comma operator can be mistaken for
declaring a multi-dimensional array as such form is common in
other languages.
int[3,4,5] xyz;
writefln( "xyz.length=%d", xyz.length);
Prints
xyz.length = 5
Whilst a trivial issue,one would hope that this does not make it into D2.
--
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