Dag Sverre Seljebotn wrote: > Stefan Behnel wrote: >> Plus, it does not solve the problem at hand, which is a problem with the >> semantics of an operator and not with the semantics of a type. > > Well, strictly speaking, Python % etc. means "invoke __mod__"; and > different classes can do different things (indeed NumPy uses C > semantics; for speed I presume). So it's not true that types and > operators are orthogonal in language design.
I didn't say that they are "orthogonal in language design". I just said that this specific problem "at hand" is a problem with operator semantics, not with type semantics. Here's one place where I tried to make that clear: http://permalink.gmane.org/gmane.comp.python.cython.devel/4907 Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
