Re: [Vala] Question about foreach and pointers.



How I can make array to info.list[iterators] if I want use "foreach"?

You can't.

foreach always takes values.

e.g. you can't do this to initialize an array:

    int[] x = new int[10];
    foreach (int y in x) {
       y = 1000;  // x is not changed
    }


hand
Nor Jaidi Tuah





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