Skip to content

7. Recursion

Nicolas BOITEUX edited this page Nov 28, 2017 · 10 revisions

Object methods can use the reference of their own object via the usage of the special variable _self

It permits to transmit the object reference to an other object.

Example of method of objet A wich transmit it owns object reference to another B object through the setInstance function.

PUBLIC FUNCTION("code","transmitObject") {
	["setInstance", _self] call _this;
};

Clone this wiki locally