mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* Format testsuite escript * Format testsuite pol * Update docs Switch "attributes" to "members" to better align with Escript terms. * Add core-changes, breaking-changes
12 lines
227 B
Text
12 lines
227 B
Text
class Foo()
|
|
function Foo( this, name )
|
|
this.name := name;
|
|
endfunction
|
|
|
|
function print( this, prefix )
|
|
::print( $"{prefix}: {this.name}!" );
|
|
endfunction
|
|
endclass
|
|
|
|
var obj := Foo( "NAME" );
|
|
obj.print( "PREFIX" );
|