Hello everyone,

I have encountered a behaviour in my adventures with ChucK that I cannot really understand. Let's suppose the following classes:

class TEnvelope
{
    fun void TFunction( int milliseconds )
    {
        <<< "before", now >>>;
        milliseconds::ms => now;
        <<< "after", now >>>;
    }
}

class StereoTEnvelope
{
    TEnvelope envelopeL;
    TEnvelope envelopeR;

    fun void TFunction( int milliseconds )
    {
        spork ~ envelopeL.TFunction( milliseconds );
        envelopeR.TFunction( milliseconds );
    }
}

class TTest
{
    StereoTEnvelope envelope;

    fun void TFunction( int milliseconds )
    {
        envelope.TFunction( milliseconds );
    }
}

and then I do:

( TTest tTest ).TFunction( 5000 );

The function in StereoTEnvelope that I call with envelope.TFunction proceeds as expected printing 'now' both before and after advancing time. But the function that I spork prints only before and then quits.

?????

Dimitris



Χρησιμοποιείτε Yahoo!
Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων
http://login.yahoo.com/config/mail?.intl=gr