| 1001010.com |
one zero zero one zero one zero dot com |
Have you ever stumbled across a C++ member function that needlessly had "this->" on every line?
void CFoo::func(int a, int b)
{
this->m_something = a;
this->m_orother = b;
this->doThat();
this->doSomething();
}
forget the poorly contrived code sample intended to protect the innocent, but do we really need "this" everywhere?
Maybe this is just a style thing, but it rubs me the wrong way.