<div dir="ltr">Fellow ChucKists,<br><br>I believe this to be a bug;<br>-------------------------------------------------------<br>class foo<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; 3 =&gt; static int bar;<br>&nbsp;&nbsp;&nbsp; }<br><br>&lt;&lt;&lt;foo.bar&gt;&gt;&gt;;<br>
----------------------------------------<br><br>For float, int and dur making members static prevents them being set to a default value at construction, <br>instead they are defaulting to 0 (or 0::ms). I ran into this with dur, where it&#39;s obviously dangerous to make this mistake.<br>
<br>Of course these constructs would (probably?) mean that initialising any instance of such a class would mean resetting the value for all instancesbut I&#39;m dealing with classes that exclusively have static members and not intending to make any specific instances of them. Clearly this is easy to get around but I still feel it&#39;s a bug.<br>
<br>Yours,<br>Kas.<br></div>