On 2016-05-31 20:35, Robert Bradshaw wrote:
I can't think of any fundamental reason these couldn't be implemented
in C, but there's really no need to do so as they can't be overridden
in C.

Well, for the comma operator there might be no reason. However, it would be nice if one could generate arbitrary code of the form

(x) (operator) (y)

for any C/C++ values x and y and any operator. Two particular cases I encountered where this would be useful:

1. "x = y" where x is something that Cython does not consider an lvalue.

2. "x || y" because Cython's "x or y" generates complicated code which isn't optimized as well as "x || y".


Jeroen.
_______________________________________________
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel

Reply via email to