digitalmars.D.bugs - [Issue 7382] New: Static matrix initialization
- d-bugmail puremagic.com (25/25) Jan 27 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7382
http://d.puremagic.com/issues/show_bug.cgi?id=7382 Summary: Static matrix initialization Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc I'd like D to allow to initialize the fixed-sized B matrix just as A: double[3] A = 0.0; // OK double[3][3] B = 0.0; // Error void main() { double[3][3] C = 0.0; // OK } Currently DMD 2.058head gives: test.d(2): Error: cannot implicitly convert expression (0) of type double to double[3u][3u] -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 27 2012