Methods inside objects

This commit is contained in:
2026-04-11 10:42:53 +10:00
parent 490e782bbf
commit 1342a54771
4 changed files with 138 additions and 1 deletions

View File

@@ -291,7 +291,7 @@ bool checkForErrors(GroundProgram* program) {
CHECK_ARG_TYPE(instruction->args.length - 1, DIRREF);
break;
// call &object !methodName [$arg1 $arg2 ...] &returnVal
// callmethod &object !methodName [$arg1 $arg2 ...] &returnVal
// Minimum 3 args: object ref, method name, return variable
case CALLMETHOD:
CHECK_ARGC_MIN(3);