Re: [Vala] Can fixed-size arrays be initialized?
- From: Marco Trevisan (Treviño) <mail 3v1n0 net>
- To: vala-list gnome org
- Subject: Re: [Vala] Can fixed-size arrays be initialized?
- Date: Thu, 03 Mar 2011 16:54:50 +0100
Il giorno mer, 02/03/2011 alle 20.33 +0000, Graham Whelan ha scritto:
int main (string[] args) {
int a[5] = {1, 2, 3, 4, 5};
return 0;
}
You should use:
int[] a = {1, 2, 3, 4, 5};
Valac doesn't handle the error correctly...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]