[Vala] Printfing an object
- From: Donn <donn ingle gmail com>
- To: vala-list <vala-list gnome org>
- Subject: [Vala] Printfing an object
- Date: Sun, 17 Nov 2013 15:10:29 +0200
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]