On 3/13/07, <b class="gmail_sendername">Scott Wheeler</b> &lt;<a href="mailto:wheeler@kde.org">wheeler@kde.org</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>The conceptual problem that you had is that static functions operate on<br>*no* instance of a class rather than *all* instances of a class.&nbsp;&nbsp;Static<br>functions can only access static variables since the others are not
<br>available (since there&#39;s no instance there for them to access).</blockquote><div><br><br>Yes, that&#39;s it exactly! My reasoning was that it looked to me like changing a static variable acted on all members and that this would mean that static functions would work in the same way.
<br></div><br>This idea got reinforced by Chuck allowing me to adress static functions as members of instances and it not being very clear *why* this led to issues so I just tried all variations that I could think of. <br>
<br>Oh, well, another great learning experience and another thing found that could stand clarification in the docs. The examples do corectly adress only static variables but they don&#39;t explain why they do so. I thought they were taking static integers as a target because that section was explaining those as well and that I could abstract this and aply it to other sorts of things as well.
<br><br>Thanks for your clear explanation, realy like that way of doing lists as well, BTW.<br><br>Kas.<br></div>