mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 09:46:17 +01:00
Please don't use GInitiallyUnowned and floating refs
This place is not a place of honor… No highly esteemed API is implemented here… Nothing valued is here.
This commit is contained in:
parent
a734a92408
commit
8b2f6a5523
@ -53,6 +53,13 @@
|
||||
*
|
||||
* ## Floating references # {#floating-ref}
|
||||
*
|
||||
* **Note**: Floating references are a C convenience API and should not be
|
||||
* used in modern GObject code. Language bindings in particular find the
|
||||
* concept highly problematic, as floating references are not identifiable
|
||||
* through annotations, and neither are deviations from the floating reference
|
||||
* behavior, like types that inherit from #GInitiallyUnowned and still return
|
||||
* a full reference from g_object_new().
|
||||
*
|
||||
* GInitiallyUnowned is derived from GObject. The only difference between
|
||||
* the two is that the initial reference of a GInitiallyUnowned is flagged
|
||||
* as a "floating" reference. This means that it is not specifically
|
||||
|
Loading…
Reference in New Issue
Block a user