Re: [Vala] Printfing an object



On 19/11/2013 10:12, Abderrahim Kitouni wrote:
"%p".printf(your_object)
Ah. Big thanks!


btw, you don't need & when dealing with instances of classes,
Ahhh two :D Will have a look.


your classes inherit from GLib.Object, you can use
your_object.get_type().name() (I'm writing this from memory, there
may be an error) to get the type name.
I have played with this, thanks for reminding me.

\d


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