[Vala] Generics and .to_string()

2013-02-20 Thread Albert Hopkins
I would like to use a Generic class, so class MyClassT { T property; ... public void Print() { stdout.printf(property.to_string()) } } The compiler fails with: The name `to_string' does not exist in the context of `T' And that does kinda make sense to me, the question

Re: [Vala] Generics and .to_string()

2013-02-20 Thread JM
There is no such but you can write that interface: For example: public interface IStringable { public string get_string(); } ...extendable as needed. BestRegards Am Mittwoch, den 20.02.2013, 07:51 -0500 schrieb Albert Hopkins: ___ vala-list

Re: [Vala] Generics and .to_string()

2013-02-20 Thread Eric Gregory
On Wed, Feb 20, 2013 at 4:51 AM, Albert Hopkins mar...@letterboxes.orgwrote: ((Object) property).to_string() tells me that GLib.Object has no to_string() (I thought it did, but may have confused it with C#'s object. Have you looked at Valadoc.org? The reference for (G)Object is here:

Re: [Vala] Generics and .to_string()

2013-02-20 Thread Albert Hopkins
On Wed, Feb 20, 2013, at 08:29 AM, JM wrote: There is no such but you can write that interface: For example: public interface IStringable { public string get_string(); } I guess I could write the interface, but what I want to be able to do is, e.g., simply create a type by

Re: [Vala] Generics and .to_string()

2013-02-20 Thread Eric Gregory
On Wed, Feb 20, 2013 at 12:42 PM, Albert Hopkins mar...@letterboxes.orgwrote: I guess I could write the interface, but what I want to be able to do is, e.g., simply create a type by passing an int to the generic, then have the class be able to see if it's type (int in this example). has a

[Vala] [ANNOUNCE] Vala 0.19.0 - Compiler for the GObject type system

2013-02-20 Thread Jürg Billeter
We are pleased to announce version 0.19.0 of Vala, a compiler for the GObject type system. Vala 0.19.0 is now available for download at: http://download.gnome.org/sources/vala/0.19/ Changes since 0.18.1 * Support scope = async attribute for parameters. * Add --api-version option. * Add

Re: [Vala] [ANNOUNCE] Vala 0.19.0 - Compiler for the GObject type system

2013-02-20 Thread Duke Normandin
On Wed, 20 Feb 2013 22:48:41 +0100 Jürg Billeter j...@bitron.ch wrote: We are pleased to announce version 0.19.0 of Vala, a compiler for the GObject type system. Vala 0.19.0 is now available for download at: http://download.gnome.org/sources/vala/0.19/ Is there a Win7 binary package

Re: [Vala] [ANNOUNCE] Vala 0.19.0 - Compiler for the GObject type system

2013-02-20 Thread Nor Jaidi Tuah
Changes since 0.18.1 * Support scope = async attribute for parameters. Async parameters? Is that for delegate parameters? Any pointers to further explanation? Nice day Nor Jaidi Tuah PRIVILEGED/CONFIDENTIAL information may be contained in this message. If you are neither the addressee