a class function with if(this==NULL) test got compiled?
<p>I saw this code snippet during our lab and it actually compiles in MSVC2008 and G++. </p>

<pre><code>void LinkList&lt; class T &gt;::Insert(T n)  
{  
    if (this == NULL)  
    // some code here  
}
</code></pre>

<p>As far as I know the <code>this</code> must not be null since you cannot call a class functions in c++ if it wasn't instantiated. Is this a valid code? if so what's the reason behind and where it can be useful?</p>
