Re: [Vala] trunk broken?



But there are bunch of GBoxed derived types in glib.vapi.

And on 0.6.0 the code compiles just fine.

Is it possible to declare a weak reference to a struct?
At least in 0.6.0 I can't assign a null to a weak reference to a struct.
But it is possible to do so with a GBoxed derived class.

Yu

On Fri, Apr 3, 2009 at 4:51 AM, Jürg Billeter <j bitron ch> wrote:
On Wed, 2009-04-01 at 11:07 -0400, Feng Yu wrote:
> I am working on a fix for struct member method as a delegate. But the
> test code entirely fails to compile with lots of gcc errors. I notice
> that the types are now declared in both of .h and .c files. and those
> in .c files are incomplete.

You derive from GLib.Boxed, which is not supported as it is not a real
class. If you want to declare a type that is registered as GBoxed in the
GObject type system, use a struct in Vala.

Jürg




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