www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3515] New: Disallow use of comma operator when declaring array dimension

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: procode adam.com.au


--- Comment #0 from Justin Johansson <procode 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: -------
Nov 16 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3515


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |FIXED


--- Comment #1 from Don <clugdbug yahoo.com.au> 2010-01-10 11:37:17 PST ---
Fixed DMD2.037.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 10 2010