[Vala] Warning or Bug ?
- From: Serge Hulne <serge hulne gmail com>
- To: vala-list gnome org
- Subject: [Vala] Warning or Bug ?
- Date: Wed, 8 Jun 2011 09:25:07 +0200
Does anybody know why the following snippet produces a warning:
//----------------
// Struct to hold key, values pairs:
struct pair {
public int freq;
public string word;
}
// Equality function for structs :
bool equals (pair a, pair b) {
return (Posix.strcmp(a.word, b.word) == 0);
}
//List:
var L = new LinkedList<pair?>( (EqualFunc) equals);
//----------------
Obviously the linked list instantiation does not like my equality
assessment function, but why ?
Serge.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]