RE: The iterator interface



On Mon, 2006-08-07 at 11:31 +0300, Dirk-Jan Binnema nokia com wrote:
> Hi Philip, 

> ie.
> GObject* tny_iterator_iface_current (const TnyIteratorIface *self,
> gboolean add_ref);
> 
> (adding the const as well, for good taste :-). 

The const, I'm also not sure about. If you want to use const for own
typedefs, then the Python bindings will need manual adaptations.

Also note that const is meaningless for such pointers. As you can change
the heap reference where they point to anyway (the compiler only guards
the pointer value afaik).


-- 
Philip Van Hoof, software developer at x-tend 
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
work: vanhoof at x-tend dot be 
http://www.pvanhoof.be - http://www.x-tend.be




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