OOP support.
This commit is contained in:
@@ -37,6 +37,8 @@ Dynamic
|
||||
|
||||
* Dynamic dispatch via [function pointers].
|
||||
|
||||
* Some support for [OOP].
|
||||
|
||||
Safe
|
||||
----
|
||||
|
||||
|
@@ -13,6 +13,7 @@ It doesn't attempt to be a new language. For example:
|
||||
* No structures/records - define your types in Rust instead; Rhai can seamlessly work with _any Rust type_.
|
||||
|
||||
There is, however, a built-in [object map] type which is adequate for most uses.
|
||||
It is possible to simulate [OOP] by storing [function pointers] in [object map] properties, turning them into _methods_.
|
||||
|
||||
* No first-class functions - Code your functions in Rust instead, and register them with Rhai.
|
||||
|
||||
|
Reference in New Issue
Block a user