Dag Sverre Seljebotn wrote:
> 3) Just tracking the first assignment, and destruct at end of function, 
> would kind of work, but there's a problem: Basically the first 
> assignment must invoke placement new, while subsequent assignments must 
> use "=".

If this was unintuitive, consider the fact that when doing

a = b

what really happens is

a.~ClassName(); // run destructor
a.ClassName(b); // run copy constructor

Thus we simply need to "achieve parity" with this, so to speak.

-- 
Dag Sverre
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to