23 lines · 457 B · Text
RawDownload
// static function test: sporking a static function defined in a // parent class, without using the dot notation class FooParent{    fun static void foo( string s )    {        if( s == "bar" ) <<< "success" >>>;    }} class Foo extends FooParent{    fun static void start()    {        // spork without dot notation e.g., f.foo(...)        spork ~ foo( "bar" );        // yield to let new shred run        me.yield();    }} Foo.start();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t