[Vala] Const #defs after use: is this a known problem?



If I have the following structure:

public class Main : Object
{
....
  static const int max_chans = 64;
....
  static int out_chans[max_chans];

The compilation fails because the #defines for the const declarations are
made after the declarations of the non-const arrays.  Is there a reason for
this, or is it just a compiler error?

Regards,

Andrew Lees


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]