title: Keword this - a class member reffering to itself
body: <p>Concering syntax in c++</p>
  
  <p>The keyword <strong>this</strong> is a pointer to the object (class) itself and putting a * ahead of this is the same as derefferencing the pointer. </p>
  
  <p>So let say the class has a private member </p>
  
  <pre><code> private:
   int a = 10;
  </code></pre>
  
  <p>And I create the following syntax:</p>
  
  <pre><code> (*this).a = obj.a;
  </code></pre>
  
  <p><em>Could be used for instance when overloading the "=" operator</em> </p>
  
  <p>It looks abit strange because it seems that the class member "a" is referring to itself - <strong><em>but its a valid syntax!!!</em></strong></p>
  
  <p>Then my question is - <strong>if</strong> that statement is valid - <strong>why</strong> could one not write it in the following manner:</p>
  
  <pre><code> obj.a = obj.a;
  </code></pre>
  
  <p>???</p>
  
  <p>I get the following error in <strong>Eclipse</strong>:</p>
  
  <p><em>assignment ti itself</em></p>