[Vala] Printfing an object



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


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