Update syntax.md

This commit is contained in:
2026-04-11 10:45:33 +10:00
parent 1342a54771
commit 6f6239f495

View File

@@ -348,6 +348,14 @@ Calls a function. After the function reference, a variable amount of value refer
The last argument must be a direct reference which symbolises where to store the function's return value.
#### callmethod &object !methodName $arg1 $arg2 $arg3... &variable
Calls a method stored inside an object. The object can use the "self" variable to refer to itself, and manipulate its fields.
The first argument must be a direct reference to the object, and the second argument must be a function reference to the method name.
The last argument must be a direct reference which symbolises where to store the method's return value.
### Libraries