Pitfalls of delegates inside ranges

Sönke Ludwig sludwig at outerproduct.org
Tue Sep 3 03:00:27 PDT 2013


Am 02.09.2013 15:39, schrieb Artur Skawina:
>
>      this(this) { jump.ptr = &this; }
>

Just a warning: This can still easily crash due to D's struct move 
semantics. Structs are moved around sometimes without any postblit 
constructor or destructor being called, so fixing self-references like 
this won't work in general.


More information about the Digitalmars-d-learn mailing list