>> That's a fair summary. 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 +=, but we can just compile += 1 and -= 1 to those operators in > general (also for plain ints for that matter), so it's not really a > problem. (We are then requiring that += 1 would have the same semantics, > which I'm 100% fine with.) This holds for both my and your stance BTW > and is orthogonal. >
Could we define a function int() and dec() for that? like, inc(iterator), dec(iterator). Would this be possible? And, of course, better? _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
