Is it possible to subclass a vapi class without starting a gobject hierachy?
e.g. subclass zlibs GZFileStream <http://www.vala-project.org/doc/references/zlib.vapi/ZLib/GZFileStream.htm> and a subclass instance is still compatible with the zlib methods.
(Naturally the methods will not be virtual)

When I tried subclassing this vapi class:



like this:


the generated C code for method x is:

gint blah_x (blah* self) {
       g_return_val_if_fail (self != NULL, 0);
       return t (NTVFS (self));
}

which does't compile; NTVFS and TYPE_NTVFS are not defined, although they could be, NTVFS macro (missing) could return the original struct...

Sam


_______________________________________________
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to