[chuck-users] spork question
Bozelos Dimitris
dbozelos at yahoo.gr
Sat Aug 15 16:25:26 EDT 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20090815/24d70953/attachment.html>
More information about the chuck-users
mailing list