Add oop.rhai script.

This commit is contained in:
Stephen Chung
2020-06-27 17:34:39 +08:00
parent d509006264
commit 549ef6bf7f
7 changed files with 62 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ Special Support for OOP via Object Maps
{{#include ../links.md}}
[Object maps] can be used to simulate object-oriented programming ([OOP]) by storing data
[Object maps] can be used to simulate [object-oriented programming (OOP)][OOP] by storing data
as properties and methods as properties holding [function pointers].
If an [object map]'s property holds a [function pointer], the property can simply be called like