3 ms·
> GLib adds an object system, not a type system. In service of GObject, glib implements GType, and GLib's goals necessitated adding a (dynamic) type system to
by pengaru 4y ago
> GLib adds an object system, not a type system.
In service of GObject, glib implements GType, and GLib's goals necessitated adding a (dynamic) type system to C:
https://docs.gtk.org/gobject/concepts.html#the-glib-dynamic-type-system https://docs.gtk.org/gobject/concepts.html#the-glib-dynamic-...
We've had literally decades of glib-utilizing free software developers mocking C devs reinventing their own bespoke type systems (and/or object systems) in their projects in lieu of simply adopting glib.
It most definitely adds a type system, at least as much as one could manage something called that in C. It just doesn't end there, and obviously your object system will dovetail with your type system.