I wrote a small ChucK program which does some sporking and one (not the sporked one) function is overloaded.
Code: Select all
fun int nextStep ( int index )
{
0 => int out;
...
return out
}
fun int nextStep ()
{
nextStep ( myIndex );
}
Calling "nextStep()" within an endless loop:
Code: Select all
while(true)
{
nextStep();
}
[SOLUTION]
I forgot the "return" statement within the overloaded "nextStep()" function!!!
Here's how it works now:
Code: Select all
fun int nextStep ()
{
return nextStep ( myIndex );
}
This sucker has cost me 2 hours!!!