[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[Vala] Problem with foreach and array ?
- From: picca <picca synchrotron-soleil Fr>
- To: vala <vala-list gnome org>
- Subject: [Vala] Problem with foreach and array ?
- Date: Wed, 6 Aug 2008 09:33:10 +0200
Hello
I attached a file making valac crash
to compile with valac -C test.vala
See you
Frederic
PS : Everythings fine if I replace the foreach with a for statement.
public class test<T> {
T[] data;
public int index_of(T item) {
int idx = 0;
foreach(T it in this.data)
if (item == it)
return idx;
return -1;
}
}
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]