Dag Sverre Seljebotn wrote: > 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
Wrong, wrong, wrong!! operator= is invoked! I'll just let this be thread be for now :-) -- Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
