18 lines
309 B
Text
18 lines
309 B
Text
import extensions;
|
|
|
|
class Example
|
|
{
|
|
foo(x)
|
|
= x + 42;
|
|
}
|
|
|
|
public program()
|
|
{
|
|
var example := new Example();
|
|
var methodSignature := "foo";
|
|
|
|
var invoker := new MessageName(methodSignature);
|
|
var result := invoker(example,5);
|
|
|
|
console.printLine(methodSignature,"(",5,") = ",result)
|
|
}
|