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:
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
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
wrote:
Why in gobject-2.0.vapi GLib.Object.get_type () is an instant method?
This method should be declared as static, because some