Re: [Vala] Vala object model

On Tue, 2008-08-19 at 15:42 -0400, Yu Feng wrote:
A fact:

I can't start a class from GTypeInstance in vala 0.3.5, Vala will try to
use GTypeInstanceClass as the c class name whereas GTypeClass should be

and in glib-2.0.vapi 
TypeInstance is labelled as deprecated.

Just don't specify a base class if you want to base your class directly
on GTypeInstance, e.g.

public class MyObject {

The reason we've changed this is that GTypeInstance is not a real class,
it is just a C helper structure used to implement your own fundamental
class. Fundamental classes don't have a base class and this fact is now
more appropriately represented in Vala.


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