[Development] Qt 5.9's new garbage collector documentation? + root_ptr

Tim Blechmann tim at klingt.org
Fri Jul 7 14:14:46 CEST 2017


> If there is one root_ptr per
> Javascript function then all local variables are guaranteed to be
> destroyed.  And closures aren't too big of a deal either because child
> objects can easily refer to their parent.
> 
> But returning local variables might need some work on root_ptr such as
> "unlisting" the variable from one set in order to "enlist" it to the
> parent set.

how do you solve the situation that an object might be referenced by
multiple roots?




More information about the Development mailing list