|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.bugs - [Issue 2017] New: Dynamic array creation
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 digitalmars.com ReportedBy: gide 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? -- Apr 20 2008
|