On Do, 2010-12-09 at 11:40 -0600, W. Michael Petullo wrote: > Is there a GINT_TO_POINTER-like capability in Vala? Or, if I need > something like this does it mean I am not trying to solve a problem in > a Vala way? In C, I often use this macro to place integers into GLib > datatypes like GHashTable. > That's int.to_pointer(), but in Vala all those things a generics anyway, so you would store the int there, not a pointer.
You could have found that yourself with a simple grep in the vapis: $ grep -A1 -R GINT_TO_POINTER vapi/ vapi/glib-2.0.vapi: [CCode (cname = "GINT_TO_POINTER")] vapi/glib-2.0.vapi- public void* to_pointer (); -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/. _______________________________________________ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list