Re: [Vala] Question about foreach and pointers.
- From: Nor Jaidi Tuah <norjaidi tuah ubd edu bn>
- To: <vala-list gnome org>
- Subject: Re: [Vala] Question about foreach and pointers.
- Date: Thu, 26 Jul 2012 08:29:34 +0800
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]