|
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 2009] New: Compile-time multi-dimentional array not initialized
http://d.puremagic.com/issues/show_bug.cgi?id=2009 Summary: Compile-time multi-dimentional array not initialized Product: D Version: 2.012 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: bartosz relisoft.com The following code works at runtime: string [][] f () { string [][] result; result ~= ["int i;"]; return result; } but when used in a mixin, it doesn't compile mixin (f()[0][0]); One little change, adding the initialization of the array, makes it work again: string [][] result = []; // works CT -- Apr 18 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2009 ------- Comment #1 from clugdbug yahoo.com.au 2008-04-28 07:25 ------- I think this is the same as issue#1768. -- Apr 28 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2009 gide nwawudu.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE ------- Comment #2 from gide nwawudu.com 2008-04-28 10:02 ------- *** This bug has been marked as a duplicate of 1768 *** -- Apr 28 2008
|