<div dir="ltr">this is a very reasonable workaround.  thanks.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Feb 2, 2014 at 1:59 PM, Perry R Cook <span dir="ltr"><<a href="mailto:prc@cs.princeton.edu" target="_blank">prc@cs.princeton.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Further research shows that this also fails,<br>
for either fred[10] or fred[]:<br>
<br>
       Mandolin bob[10];<br>
       UGen fred[10];<br>
<br>
       bob @=> fred;<br>
<br>
but this works just fine:<br>
<br>
       Mandolin bob[10];<br>
       UGen fred[10];<br>
<br>
       0 => int i;<br>
       while (i < bob.cap()) (bob[i]) => fred[i++];<br>
<br>
So it appears that object array copies require<br>
identical objects and structures, but individual<br>
object assignment is OK via the class structure.<br>
<br>
Maybe Ge/Spencer can pipe in here on the specifics.<br>
<span class="HOEnZb"><font color="#888888"><br>
PRC<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
----- Original Message -----<br>
Not exactly sure why this is failing.<br>
Also tried declaring Blit osc[], but nope.<br>
Here's a fix for now, assigning all elements<br>
individually:<br>
<br>
BlitSquare pls[10];<br>
BlitSaw saw[10];<br>
Blit osc[10];<br>
if (myVariable) {<br>
    for (0 => int i; i < pls.cap(); i++)<br>
        pls[i] => osc[i];<br>
} else {<br>
    for (0 => int i; i < pls.cap(); i++)<br>
        saw[i] => osc[i];<br>
}<br>
<br>
<br>
   1. how do I assign a Blit array with a BlitSquare array?<br>
      (George Locke)<br>
_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</div></div></blockquote></div><br></div>