[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[Vala] Proble with array.
- From: picca <picca synchrotron-soleil Fr>
- To: vala-list gnome org
- Subject: [Vala] Proble with array.
- Date: Mon, 18 Aug 2008 10:14:09 +0200
Hello
I attached a file.
valac -C test.vala
you will see a problem in the geometry_new_copy method.
this method call holder_new_copy with the wrong number of parameter.
it miss the array length.
did I miss something ?
See you
Frederic
class Holder {
weak uint[] idx;
public Holder.copy(Holder src, uint[] idx) {
this.idx = idx;
}
}
class Geometry {
uint[] idx;
Holder[] holders;
Geometry.copy(Geometry src) {
this.holders = new Holder[src.holders.length];
uint i=0U;
foreach(weak Holder holder in this.holders)
this.holders[i++] = new Holder.copy(holder, this.idx);
}
}
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]