what to do with postblit on the heap?

Sean Kelly sean at invisibleduck.org
Tue Jun 21 14:24:27 PDT 2011


On Jun 21, 2011, at 11:26 AM, Andrei Alexandrescu wrote:
> 
> The rule that move and TDPL rely on but is not fully implemented is that returning a nonstatic local value never does a postblit nor a destructor - it just copies the bits.

So it's effectively illegal to have a struct containing a pointer that references itself, correct?


More information about the Digitalmars-d mailing list