Ok, I have a class function:
Thats an example, I know I could inline ReturnSelf to :P.Code://Just an example
class Pointless {
private:
int x;
public:
Pointless();
int GetX() {return x;}
Pointless ReturnSelf();
};
Pointless Pointless::ReturnSelf() {
return Self;
}
So, I just want to return whatever called ReturnSelf. Like:
Once again, thats an example :P. But it would be the eqivalent of:Code:int main() {
Pointless a;
Pointless *b;
b = &a.ReturnSelf(); // Is this even valid expression? -,-.
Thank you for your help!Code:int main() {
Pointless a;
Pointless *b;
b = &a;
}
[edit]
Miswrote my example... -,-.