[chuck-users] Sporking class member causes NullPointerException?
nitro2k01
nitro2k01 at gmail.com
Wed Jun 28 16:10:01 EDT 2006
I tried this:
class Test{
0=>int iz;
fun void initTest(){
while(true){
<<<iz>>>;
++iz;
10::ms=>now;
}
}
spork ~ initTest();
}
Test o;
And got this:
[chuck](VM): NullPointerException: shred[id=2:spork~exp], PC=[3]
The same code works perfectly when putting the fun reference and spork
outside of the class definition. Is there any way around this, iow a
way to start a shred from a instanciated object?
/nitro2k01
--
-----BEGIN 2ROT13 MESSAGE-----
The blog of nitro2k01: <http://soundandcomplete.wordpress.com/>
Sätt på ett par flipflops, vippa på rumpan
och gör det här till en minnesvärd sommar!
-----END 2ROT13 MESSAGE-----
More information about the chuck-users
mailing list