Re: [Gnome-bindings] finishing the API guidelines

Guillaume Laurent <glaurent telegraph-road org> writes:

> Per Hedbor <per idonex se> writes:
> > > - the gtk_foo_new() (or gnome_foo_new()) call should just call
> > >   gtk_type_new(). If more initialisation needs to be done, the ptr
> > >  should be passed to a gtk_foo_configure() call.
> > 
> > This would break Pike-GTK quite spectacularly. :-)
> >
> > I do not use the _type_new/_configure paradigm, instead I wrap the
> > _new functions to the constructors in pike.
> This is strictly equivalent, I need to rephrase the above. The
> gnome_foo_new() call would of course call gnome_foo_configure(). There
> would be no change of functionality.

Do you mean gnome_foo_construct() ?

[ In general, when designing objects, you should try to design
  them so that there are _no_ mandatory constructor argumetns. But when 
  there are mandatory arguments the name that the function they
  go into is construct() - like gtk_clist_construct() ]

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