<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">What is happening is that the implicit cast of an int to a float that<br>happens in non-array land isn't happening inside of the array.
</blockquote>
<div>&nbsp;</div>
<div>Yes, I got that, that's the problem I wanted to report, also see below for complications.</div>
<div>&nbsp;</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Remember that if you put a number on the left then you are<br>initializing the values and if you put the numbers in the bracket
<br>beside the type you are declaring the size of the array.</blockquote>
<div>&nbsp;</div>
<div>Yeah, I think I understood that correctly, maybe it didn't come across from my examples. I tried to simplify those as much as possible but typed them from memory since I'm on a borowed computer and didn't think it would be correct to go install ChucK everywhere. This might've been unclear or even incorect, sorry.
</div>
<div>&nbsp;</div>
<div>Actually, I think it's a bit more mysterious then what we argeed on above.</div>
<div>I encountered this bug/feature when dealing with a 3x3 array of floats that I wanted to asign a set of values too. These values went something like this;</div>
<div>&nbsp;</div>
<div>[ [-1.25, -1, -0.75], [0, 1, 0], [1.25, 1, 0.75]] @=&gt; float foo[][];</div><br>Asignment kept failing, I kept looking and couldn't find the issue.</div>
<div>&nbsp;</div>
<div>This isn't improved by ChucK talking about a &quot;@array&quot; or something along those lines.</div>
<div>&nbsp;</div>
<div>After much frustration I tried asigning the sub-arrarys one by one and discovered the first went in fine and it was only the second one that caused a issue. It seems to me that you can asign a array that holds ints to a array of floats with implicit casting as long as there is at least one float already in there (notice the integer -1 in the first one, that one seems fine with ChucK). 
</div>
<div>&nbsp;</div>
<div>I think this should be fine;</div>
<div>&nbsp;</div>
<div>
<div>[ [-1.25, -1, -0.75], [0, 1.0, 0], [1.25, 1, 0.75]] @=&gt; float foo[][];</div>
<div>&nbsp;</div>
<div>But I think I padded every int in sight with a extra &quot;.0&quot; to be sure.</div>
<div>&nbsp;</div>
<div>I hope that clarifies?</div>
<div>&nbsp;</div>
<div>Yours,</div>
<div>Kas.</div></div>