What's the right way to exchange variables between classes?
<p>I have class Config:</p>

<pre><code>class Config
{
    public:
        Config();
        ~Config();
        void Read();
        CData var; //CData - some config structure
};
</code></pre>

<p>What's the right way to access the values from other classes? There are a few options:</p>

<ol>
<li>make it global</li>
<li>transfer reference to other classes</li>
<li>your variant</li>
</ol>

<p>In my system, <code>config.var.some</code> is needed in 90% of classes.</p>
