ok im not real clear on the "this" self pointer thing... and im not sure if anyone has ever tried to google for this and self pointer... but it doesnt exactly show what im looking for.
is there any way to change the "this" pointer? like to modify the type of "this" pointer... my professor was saying something about that today... but i didnt quite understand. his example was
i was thinking query method and mutator... but a classmate was saying that its not. something about since normal "this" is a pointer to self it is an integer pointer. but im not sure if he knows what hes talking about.Code:class SomeClass { void foo(){ // the value of "this" here } // is different void foo() const { // than it is here } };
anyone have any info?