[Issue 2017] New: Dynamic array creation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 20 06:01:43 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2017

           Summary: Dynamic array creation
           Product: D
           Version: 2.012
          Platform: All
               URL: http://www.digitalmars.com/d/2.0/arrays.html
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: gide at nwawudu.com


To create a dynamic arrays the following first example is ok, but the second
fails, maybe the second method should compile? Also, the documentation does not
mention the "abc"[] method to create a dynamic array.

Example
-------
auto str1 = "abc"[]; // OK
auto str2 = ['a', 'b', 'c'][]; // Error, invalid syntax?


-- 



More information about the Digitalmars-d-bugs mailing list