Immutable array initialization in shared static this

Matej Nanut matejnanut at gmail.com
Fri Jul 13 04:20:50 PDT 2012


I'm not sure, but it seems like it.

You can do

         constants ~= 123;

or

         constants = [ 123 ];

just fine.

There could be a reason behind this, but if you're allowed to 
change the array anyway, you should probably be able to change it 
in any way you like.


More information about the Digitalmars-d-learn mailing list