Re: generic refcounted object perl binding



On 18.10.2011 04:49, YangXi wrote:
Why the SV wrapper for a GObject keeps alive until both are freed?

This is so that we always hand out an SV referencing the same HV for the same GObject. Glib::Object allows you to store your own data directly in the referenced hash, and this mechanism makes sure that you will find this data again when you look at the same GObject later, with no need to store the SV in between.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]