assignment to this

Jarrett Billingsley kb3ctd2 at yahoo.com
Wed Jul 18 04:50:06 PDT 2007


"Regan Heath" <regan at netmail.co.nz> wrote in message 
news:f7khch$tqs$1 at digitalmars.com...
>
> I agree with the OP tho, it should either work as you'd expect or error.
>

Assigning to 'this' if the aggregate has an overloaded opAssign is perfectly 
fine; but yes, I think that trying to reassign which instance 'this' points 
to should be an error. 




More information about the Digitalmars-d-learn mailing list