[Vala] Another question about enums and arrays

2015-04-30 Thread Andy Lees
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

[Vala] Another Question

2010-01-19 Thread Sam Wilson
Hello once again friendly mailing list! I have another question, probably my own fault this time: why does the following not produce what I expect it to? [code]public int main(){string[] test_array, test2; TestClass tc; ulong len1, len2; test_array = new string[100];

Re: [Vala] Another Question

2010-01-19 Thread Jiří Zárevúcky
Sam Wilson píše v Út 19. 01. 2010 v 18:49 -0500: Hello once again friendly mailing list! I have another question, probably my own fault this time: why does the following not produce what I expect it to? [code]public int main(){ string[] test_array, test2; TestClass tc; ulong len1,