mark florisson wrote:

I'm wondering, what was the original motivation to reuse temporaries?

It goes back to Pyrex, where I didn't really give it much
thought -- it just seemed like the tidiest thing to do.
Once you have the logic to release temp references as soon
as it's safe to do so, it's not much harder to return the
variable to a pool as well.

Do we ever have C++
stack-allocated object temporaries?

Theoretically, yes --  temporaries aren't necessarily
object references, they can be of any type (or they can
in Pyrex, at least).

--
Greg
_______________________________________________
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel

Reply via email to