This method returns an object type but if it is not registered, by convention, it does. Just check C generated for a GObject.
For libraries, some times, you need to register objects in the type system before call some method, just check libgda's gda_init() at line 152: https://git.gnome.org/browse/libgda/tree/libgda/gda-init.c For C you call a macro, it calls object_get_type(), what is the effect of call in Vala typeof(ObjectName)? May this is where you can have registered a type, because it should call get type() behind scens. El ene. 24, 2016 1:16 AM, "Ben" <iofel...@gmail.com> escribió: > Object.get_type () gets the type of an instance. It doesn't make sense to > make it static. > > On Sat, Jan 23, 2016 at 6:59 AM, Daniel Espinosa <eso...@gmail.com> wrote: > > Why in gobject-2.0.vapi GLib.Object.get_type () is an instant method? This > method should be declared as static, because some times a library requires > to register a type on initialization to aviod errors at runtime. > _______________________________________________ vala-list mailing list > vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list > > _______________________________________________ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list