global static variable vs static variable in function?
<p>What's the diference between use:</p>

<pre><code>static Foo foo;
// ...
foo.func();
</code></pre>

<p>And:</p>

<pre><code>Foo&amp; GetFoo(void) 
{
    static Foo foo;
    return foo;
}

// ...

GetFoo().func();
</code></pre>

<p>Which is better?</p>
