|
From: gnome-perl (bugzilla.gnome.o. <bug...@gn...> - 2011-10-23 22:04:25
|
https://bugzilla.gnome.org/show_bug.cgi?id=662265 gnome-perl | Glib | unspecified Torsten Schoenfeld <kaffeetisch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kaf...@gm... --- Comment #2 from Torsten Schoenfeld <kaf...@gm...> 2011-10-23 22:04:14 UTC --- The GValue→SV part looks fine basically, but it should use g_value_array_get_nth and g_value_array_free. But as you note the trouble is with the the SV→GValue part. One simply cannot reliably know what type an SV has -- think of overloading, for example; <http://markmail.org/thread/xqab2x34q3kjm4l4> has more details. Also, Perl programmers don't expect to have to use things like 0+$value just because some function expects a number. The only safe way to do this, as far as I can see, is if you already know somehow what type is expected. This is the case for gtk_list_store_set_value, for example: you can find out the expected type by finding the column's type. So, what API are you trying to wrap? Is there a way to know the expected type? -- Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. |