Stefan Behnel wrote: > Hi Dag, > > Dag Sverre Seljebotn wrote: >> OK, temps in CCodeWriter is now available in -dagss. (As for status, it >> was Greg's idea, Robert seemed to approve and I haven't heard anything >> from Stefan on it but he hasn't opposed it either.) > > I never really managed to understand the details of temp allocation, and I > was always happy to get code working that required them. So I'm totally +1 > for getting this simplified. And (as Robert said already), moving temp > allocations into the code generation phase makes perfect sense to me. > > I assume that this also uses your code insertion modification to insert > temp declarations at the top of the function code?
Yes. > Is there actually any support for block-local temps? I know, this is > non-trivial as it impacts exception handling (e.g. duplicated error lables > with and without temp cleanup), but it would make sense e.g. for nogil > functions. No, but there's no obstacles to implement it from the perspective of CCodeWriter if one decides that it is worth the effort. -- Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
