From 6f6239f49596e1b4baba76dad71226c3b1237c3e Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Sat, 11 Apr 2026 10:45:33 +1000 Subject: [PATCH] Update syntax.md --- docs/syntax.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/syntax.md b/docs/syntax.md index b1a1a99..e9098df 100644 --- a/docs/syntax.md +++ b/docs/syntax.md @@ -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