new -> operator
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
|
||||
|
||||
fun sayHello(self, other)
|
||||
print("Hello ", other, " from ", self.name);
|
||||
|
||||
person = {
|
||||
name: "Francesco",
|
||||
sayHello: sayHello
|
||||
};
|
||||
|
||||
person->sayHello("Giovanni");
|
||||
|
||||
Reference in New Issue
Block a user