Unification of `Gee.HashDataFunc` and `GLib.HashFunc`
Both Gee.HashDataFunc
and GLib.HashFunc
are actually uint
, and thay cannot be implicitly converted into each other.
For example:
void main() {
var set = new Gee.HashSet<uint?>(int64_hash);
}
Will fail with error:
Argument 1: Cannot convert from `delegate uint GLib.HashFunc<int64?> (K)' to `delegate uint Gee.HashDataFunc<uint?>? (T)'
And it needs (Gee.HashDataFunc)
to make forced type conversion. This seems to be redundant.
Edited by Zhou Qiankang