'static' keyword for positional array initialization

Ali Cehreli acehreli at yahoo.com
Tue Aug 11 15:47:54 PDT 2009


The 'static' keyword is required by dmd 2.031 for the second of these two definitions:

  int[2] static_0 = [ 1, 1 ];
  static int[2] static_1 = [ 1:1 ];

Is this inconsistency by design? Should 'static' be required for both or neither?

Ali



More information about the Digitalmars-d-learn mailing list