On 8/1/16 12:01 PM, Patric wrote:I expected nothing to happen because "ref" its a simple pointer, right?Or I am missing something here?You want opAssign, not opOpAssign. opOpAssign is for things like +=.Your code had me worried for a while :) -Steve
But still.If it was the case of "+=" wasn´t wrong to call the dtor since is a ref var?