On 13.07.2018 23:46, Eduardo Habkost wrote: > On Fri, Jul 13, 2018 at 11:29:17PM +0200, Andreas Färber wrote: >> Am 13.07.2018 um 23:16 schrieb Eduardo Habkost: >>> I wonder if we should deprecate object_initialize() and support >>> only object_initialize_child() later. Initializing an object >>> contained inside another one without making it a child of the >>> parent object is a recipe for trouble. >> >> The root container object needs to be initialized, too. > > If the object is not embedded in another struct, I would expect > it to be created using object_new() instead of > object_initialize().
True. So I guess having a closer look at code that calls object_initialize() only is something for our TODO lists once 3.0 has been released... Thomas