<div dir="ltr">Folks, <div><br></div><div>I am thinking of dropping that idea. After reading quite a bit I am convinced that its probably better not use to private variables. Just having a m_ prefix should tell developers that it is private and not be used like a public variable. </div>
<div><br></div><div>So if we had</div><div><br></div><div><font face="courier new, monospace">var classA = fuunction() {</font></div><div style><font face="courier new, monospace">  /** @priate */</font></div><div style><font face="courier new, monospace">  var m_foo = 10;</font></div>
<div><font face="courier new, monospace">};</font></div><div><br></div><div>Now it will be </div><div><br></div><div><font face="courier new, monospace">var classA = function() {</font></div><div><font face="courier new, monospace">    /** @priate */</font></div>
<div style><font face="courier new, monospace">    this.m_foo = 10;</font></div><div><font face="courier new, monospace">};</font></div><div><br></div><div>With this change, the derived classes should be able to take advantage of it as for them it would be </div>
<div>ok to call this.m_foo directly. </div><div><br></div><div>I am very much interesting in hearing your thoughts on it. So please reply to this email asap. </div><div><br></div><div>Thanks,</div><div><br clear="all"><div>
<br></div>-- <br>| Aashish Chaudhary <br>| R&D Engineer         <br>| Kitware Inc.            <br>| <a href="http://www.kitware.com">www.kitware.com</a>    
</div></div>