Re: Introspection



On Mon, 2005-01-10 at 13:40 -0500, Matthias Clasen wrote:
> > > Boxed types
> > > * fields 
> > >   - type
> > >   - struct offset
> > 
> > Some object types have public fields as well. As with properties, it
> > would be useful to have explicit links between object/boxed fields and
> > their accessor methods.
> 
> If a filed of an object has to be introspectable, it should be exposed
> as a property. Why invent a new kind of second-class properties ?

Well, it's not "inventing". There are plenty of classes where there are
object fields that you need to work with, but which have no
corresponding properties or methods to access them. (GtkDialog->vbox for
example). So either the metadata needs to include that information, or
we need to make new API rules saying "don't do that", and fix the places
where we currently do.

-- Dan





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