Static initialization of rectangular arrays

rombankzero bogomancer at gmail.com
Thu Aug 29 21:21:44 UTC 2019


On Thursday, 29 August 2019 at 19:06:04 UTC, kinke wrote:
> Sorry, that was wrt. the linked bugzilla and not this example 
> here. - What does work is `static double[6][3] matrix = [0, 0, 
> 0]`, i.e., initializing each nested 1D array with a scalar 0.

I guess I'll use this workaround, though obviously it becomes 
more impractical the larger the outermost array dimension is 
¯\_(ツ)_/¯


More information about the Digitalmars-d-learn mailing list