Re: generic refcounted object perl binding
- From: Torsten Schoenfeld <kaffeetisch gmx de>
- To: gtk-perl-list gnome org
- Subject: Re: generic refcounted object perl binding
- Date: Tue, 18 Oct 2011 09:35:43 +0200
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]