[Vala] Another question about enums and arrays
- From: Andy Lees <andrewl oz gmail com>
- To: Vala List <vala-list gnome org>
- Subject: [Vala] Another question about enums and arrays
- Date: Fri, 1 May 2015 13:41:30 +1000
Hi,
What is the reason for enumeration values (which can be treated as ints
without a cast) not being allowed where a const int is required? Surely
enum values are the epitome of const values?
To whit:
int64 arr[AnEnum.SIZE];
results in:
arr2.vala:18.20-18.30: error: Expression of constant integer type expected
int64 arr[AnEnum.SIZE];
^^^^^^^^^^^
Andrew Lees
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]