polserver/testsuite/escript/classes/method-simple.src
Kevin Eady 0fa1b893a0 Update core-changes, break-changes for classes support (#719)
* Format testsuite escript

* Format testsuite pol

* Update docs
Switch "attributes" to "members" to better align with Escript terms.

* Add core-changes, breaking-changes
2024-10-10 18:06:04 +02:00

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" );