From: <bug...@bu...> - 2004-12-11 15:08:35
|
http://bugzilla.gnome.org/show_bug.cgi?id=161012 gnome-perl | Gtk2 | Ver: unspecified ------- Additional Comments From sc...@as... 2004-12-11 10:08 ------- I would've loved to have made the Gtk2::TreeIter just be a hash reference. The basic reason that wasn't possible was the fact that GtkTreeIter (in C) is designed to be used on the stack, as an object with no lifetime management. It was designed this way for speed, but these semantics mean that perl can get no notification when the caller is finished with the iter so that the hash could be destroyed and its memory reclaimed. As a workaround, the bindings allow you to specify arbitrary scalars in the last two elements of the iter array, but they do not persist (or else they would leak), so you need to keep copies around for yourself if they need to live. As always, i'm open to suggestions. ------- You are receiving this mail because: ------- You are the assignee for the bug. |