Skip to content

Objects & OOP

These instructions manage object-oriented programming concepts within the virtual machine. These opcodes enable the modification of object states, the creation of class instances, and the debugging of complex data structures to facilitate robust application development.

OpcodeArgumentsOperands (stack)Description
set_propprop_nameval, objSet the value of an object property (retrieve value and target_obj from the stack)
instantiateclass_name, argcarg1, ... argNCreates a new instance of a class with a specified number of constructor arguments
inspect_obj-objPrints the internal structure of an Object to the console
inspect_array-arrPrint the internal contents of an Array to the console

WARNING

Nightly Opcode: The instantiate instruction is still experimental. The API may change without notice in the @next or @nightly version.

Released under the Apache-2.0 License.