Hi<br>
<br>
This code produce a crash on linux with chuck-alsa. Maybe the "logic" is not right but the crash exist.<br>
<br>
<br>
class Foo {}<br>
<br>
fun void appendCap( Foo arr[], int n ) {<br>
Foo @ aux[ arr.cap() + n ];<br>
<br>
for( int i; i < arr.cap(); i++ ) {<br>
arr[i] @=> aux[i];<br>
}<br>
<br>
aux @=> arr;<br>
}<br>
<br>
Foo @ vars[5];<br>
for( int i; i < vars.cap(); i++ ) <<< vars[i] >>>;<br>
<br>
appendCap( vars, 5 );<br>
//<<< vars[4] >>>;<br>
<<< vars.cap() >>>;<br>
<br>
<<< "End" >>>;<br>
<br>
/* this work fine<br>
fun Foo[] append( Foo arr[], int n ) {<br>
Foo @ aux[ arr.cap() + n ];<br>
<br>
for( int i; i < arr.cap(); i++ ) {<br>
arr[i] @=> aux[i];<br>
}<br>
<br>
return aux;<br>
}<br>
*/<br>
<br>
<br>
Yours<br>
Lucas<br>
<br>