In a function, how to you assign this a new value?
this
You can't. If you feel the need to do this perhaps you should be writing a static method taking a class pointer as it's first parameter.