[chuck-users] chuck killed when swapping buffer reference

Ge Wang gewang at CS.Princeton.EDU
Mon Feb 13 19:30:54 EST 2006


Hi Charlls!

> This program kills chuck 1.2.0.4 after u>30, when curbuf and nextbuf 
> references are swapped. There is something blatantly wrong with this 
> code?

...

>  // time loop
>  sndbuf @ swap;
>  while( true )
>  {

...

>      curbuf => swap;
>      nextbuf => curbuf;
>      swap => nextbuf;

To do explicit assignment with objects, you need to use @=>.
Perhaps this is something we need to make more clear in the
language...

I hope this helps.

Best,
Ge!



More information about the chuck-users mailing list