[Cython] Operators for ctypedef struct

Stefan Behnel stefan_ml at behnel.de
Sun Apr 26 19:33:44 CEST 2009


Dag Sverre Seljebotn wrote:
> Robert Bradshaw wrote:
>> I am also for supporting only a subset of what  
>> is possible--if one really needs crazy stuff like differently  
>> implemented prefix/postfix decrements and -> vs (*). one can code in C 
>> ++ or use clever macros. (Would we need to expose ++, a.k.a  
>> "__next__" for STL iterators?)
> 
> Yes, you need ++/-- for std::list<T>::iterator, which doesn't accept any 
> form of +=

Am I missing something here? Why isn't the for-loop syntax enough for C++
iterators?

Stefan


More information about the Cython-dev mailing list