[Vala] Gee.Collection Help



Hi Vala developers,

I am having one issue trying to base a class off of the Gee.Collection
interface...

class Test<G> : Object, Iterable<G>, Collection<G> {
..
  public Collection<G> read_only_view {
    owned get {
      return this;
    }
  }
..
}

Filling out this function returns the following error:

/Projects/vala/queue/list.vala.c: In function ‘_g_destroy_func0_’:
/Projects/vala/queue/list.vala.c:419:21: error: ‘g_destroy_func’ undeclared
(first use in this function)
/Projects/vala/queue/list.vala.c:419:21: note: each undeclared identifier is
reported only once for each function it appears in
error: cc exited with status 256
Compilation failed: 1 error(s), 1 warning(s)
make: *** [all] Error 1

What does this error mean?

cheers,

Peter


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]