Re: [Vala] __str__ method in vala ?



Or perhaps Vala could automatically generate to_string methods for classes if debug interface is used. That would be wery usefull.

Yu Feng wrote:
Or VALA can provide such facilities in libgee or somewhere with a
GObject Interface?
We don't have any core vala runtime libraries yet.


On Fri, 2008-10-24 at 19:57 +0200, Frederik wrote:
Roberto Majadas wrote:
Hi everyone :

Could be really interesting a method like __str__ method in python.
Opinions ?
The best solution would be if GObject had a virtual method called
'to_string ()', but that would be a change to GLib not Vala. Subclasses
could override this method as needed.

Regards,

Frederik


--
Arto Karppinen
------------------------------
arto karppinen iki fi



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