Hi,
In python one can "print (someobject)" and get a nice hash kind of thing. Is there any equiv way of printf-ing an object in vala/gobj?

e.g. <__main__.A instance at 0x1989320>

At the moment I'm making a repr() method (via a static counter to generate a unique number per new instance) and printing myobj.repr(), which is ok. But .. maybe there's a better way?


\d
_______________________________________________
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to