mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* modifed test to trigger the failure * getParams modifies the ValueStack and thus cannot be called twice. * docs
19 lines
395 B
Text
19 lines
395 B
Text
class Foo()
|
|
function Foo( this, name )
|
|
this.name := name;
|
|
endfunction
|
|
|
|
function print( this, prefix )
|
|
::print( $"{prefix}: {this.name}!" );
|
|
endfunction
|
|
|
|
function set_member( this, param )
|
|
this.print( $"succeeded with method_id call {param}" );
|
|
return "done";
|
|
endfunction
|
|
endclass
|
|
|
|
var obj := Foo( "NAME" );
|
|
obj.print( "PREFIX" );
|
|
print( obj.set_member( "param" ) );
|
|
|