Re: [Vala] Can fixed-size arrays be initialized?



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]