<div dir="ltr">Stefan Blixt; <div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Yeah, 4 =&gt; static int i; in a class should either result in a syntax error or in 4 being assigned to i once, either at define time or the first time the class is referenced. The current behaviour is wrong.</div>
</blockquote><div><br>I think it should be set at define time because of the special case that static data (in public classes) forms for ChucK. It&#39;s useful to be able to set values in classes that are never instantiated and are only used to share data across the VM. We can already do that by setting the value outside of the class in the file that defines the class but I feel this is far cleaner and less likely to lead to confusion when we have a lot of files holding a lot of classes.<br>
<br>If we&#39;d really like to only set the value at the moment the class is first instantiated for some reason we could go;<br><br>class ZeClass<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; static int has_a_instance;<br>&nbsp;&nbsp;&nbsp; static int DaValue;<br>&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; if (!has_a_instance)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 1=&gt; has_a_instance;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 3 =&gt; DaValue;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br></div></div><br>...I&#39;m not sure when or why you would want that but you can.<br><br>Ge; I know and it&#39;s fine. If at all possible I would like some feedback on when I&#39;m simply mistaken. I think I&#39;ve been &quot;complaining&quot; about some of the Mini&#39;s behaviour while in truth it was already fixed and I hadn&#39;t adapted my own behaviour to the updated feature set yet. I feel a bit bad about that but in my defence; the doc&#39;s on that update really are quite vague and mainly mention more intelligent behaviour, not *in what way* it&#39;s been more intelligent for the last 4 versions...<br>
<br>Generally I think the bug finding process is going well now. I like the structure of first debating it on the list or forum and then when people agree this is a real bug adding it to the Wiki to be ticked off in a future update. While I like to chat with you I also think it&#39;s good that we seem to have reached a stage where there is no real need for you to personally and timely confirm something is a bug, which is good, considdering the lack of hours in a day. Decentralisation can be good.<br>
<br>Yours,<br>Kas.<br></div>