// static function test: multiple arguments, sporked from instancepublic class Foo{ fun static void foo( string a, int b, float c ) { if( a == "bar" && b == 1 && c == 4.0 ) <<< "success" >>>; }}// instantiate fFoo f;// spork itspork ~ f.foo( "bar", 1, 4.0 );// give it a chance to runme.yield();
// static function test: multiple arguments, sporked from instance
public class Foo
{
fun static void foo( string a, int b, float c )
{
if( a == "bar" && b == 1 && c == 4.0 ) <<< "success" >>>;
}
}
// instantiate f
Foo f;
// spork it
spork ~ f.foo( "bar", 1, 4.0 );
// give it a chance to run
me.yield();