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



What Jürg is trying to say, is that if you have some method/function which gets some GObject (for example before now if you wanted to implement your own list and get a gobject you need to do it manually making a GBoxed object which stores your struct), you can now implement them automagically if you are using structs, like in other languages like C#, which makes it transparent for the developer. If not, you should make your method/function pass a gpointer or something like that, and it ends being more "problematic".

El dom, 21-12-2008 a las 09:06 +0100, Jürg Billeter escribió:
On Sun, 2008-12-21 at 07:57 +0800, Barry Kauler wrote:
> > * Register structs as boxed types.
> 
> This must be a good thing, but what does it mean in practical terms?
> I mean, I haven't got a clue what a "boxed type" is and how that changes
> how we use structs in Vala/Genie.

With boxed, I meant GBoxed in the GObject type system. It does not
change how structs are used in Vala/Genie. However, it makes it possible
to store a Vala struct in a GValue, which is necessary to use structs as
GObject properties among other things.

> Is there documentation anywhere?

If you want more information about GBoxed, have a look at the GObject
documentation.

> Will Genie have to be updated also?

No, this was a change in the code generator, which applies to both, Vala
and Genie.

Jürg

_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list


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