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: nob...@puremagic.com
        ReportedBy: proc...@adam.com.au


--- Comment #0 from Justin Johansson <proc...@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: -------

Reply via email to