Can an object instance null out the "this" pointer to itself safely?
<pre><code>Class A
{
  public:
    NullIt()
    {
      this = NULL;
    }

    Foo()
    {
      NullIt();
    }
}

A * a = new A;
a-&gt;Foo();

assert(a);  //should assert here
</code></pre>

<p>Is there a way to achieve this effect, memory leaks aside?</p>
