January 27, 2012 [Issue 7382] New: Static matrix initialization | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from bearophile_hugs@eml.cc 2012-01-27 15:41:14 PST --- 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: ------- |
Copyright © 1999-2021 by the D Language Foundation