1001010.com

one zero zero one zero one zero dot com
one hundred ten ten dot com
binary representation of ascii 'J' (74) dot com

home code projects photos wiki resumé tombstone ?
Individual Entry Archive: The Experiments of Jason De Arte - Evil Lawn Dart Master, Toy Maker and Professional Software Engineer
« prev: Things I Like: Visual Assist
» next: Things I Like: Project Management and Planning...
Code | Tuesday
Thing I dislike: Superfluous this
Posted by Jason on Tuesday August 23, 2005 01:29 PM  |  Permalink  |  Comments (0)

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.

Comments (0)

Comments are closed