On Wed, Jan 26, 2011 at 10:35 PM, Stefan Behnel <stefan...@behnel.de> wrote: > Stefan Behnel, 27.01.2011 07:29: >> ticket #654 describes a problem with the order in which function call >> arguments are evaluated. I fixed it and it broke Sage. >> >> The problem was that in cases where some arguments are simple and others >> are not, the non-simple arguments are stuffed into a temp before hand, thus >> being evaluated before the other arguments. This can break side-effects of >> simple arguments, which include C function calls. >> >> My fix was to put all arguments into temps if any of them are in temps >> anyway. > > BTW, I wonder if a better fix would be to declare C function calls > non-simple in general.
If C function calls are simple, that's a bug. Simple expressions should be side-effect free by definition. - Robert _______________________________________________ Cython-dev mailing list Cython-dev@codespeak.net http://codespeak.net/mailman/listinfo/cython-dev