On Tue, Sep 29, 2009 at 12:32:36 +0200, Florian Brosch wrote:
> > I take a look at http://valadoc.org to search GLib.Value documentation and 
> > don't find anything.
> 
> http://references.valadoc.org/gobject-2.0/GLib.Value.html
> 
> On Tue, Sep 29, 2009 at 12:17 PM, John - <[email protected]> wrote:
> > I try to make some test to trasform int, string, float to GLib.Value and 
> > then to int, string, float , but i don't find anything.

You can simply assign value of (almost) any type to an lvalue typed
GLib.Value and vala should do the right thing.

> > How to know GLib.Value type?

See the above documentation. Most interesting are probably type_compatible
and type_transformable methods.

> > How to transform GLib.Value to int, string, float, ...?

Again simply assigning should do.

-- 
                                                 Jan 'Bulb' Hudec <[email protected]>
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to