Re: broken oop ?



Elliot Lee wrote:
> 
> On Sat, 15 May 1999, Sergio Kessler wrote:
> 
> > ok, but when you work with automated tools to make bindigs, doing
> > extra calls that are not part of the original API is, again, a
> > pain, usually you have to do it by hand.
> 
> Fix the automated tools :-)
> > again, if gtk also provide accesors to _read_ (as well write) all
> > the properties, gtk would be more cleaner and will allow more changes
> > to the internal fields without breaking compatibility, and, of course,
> > it will make the life of bindings maker _much_ more easy.
> >
> > Conclusion: I'am not asking to modify gtk 1.2 (of course),  I'm asking
> > that if could be possible for authors following some guidelines in
> > 1.3 that could really help us *very* much.
> >
> > For example:
> >
> > - Use gboolean for boolean fields and boolean functions.
> 
> (yes yes)
> 
> > - Provide accesors for reading properties.
> 
> This will be really really slow compared to direct access.


why do you think that. If you have s.th. like
get_property(void){
	return property;
}

any suitable compiler should be able to inline such a stuff. If not 
another will. Or do I misunderstood s.th?

Till then
Friedrich



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