See http://en.wikipedia.org
Prototype Inheritance | See http://en.wikipedia.org |
otlib | |
Clone | Creates a clone of an object. |
Parent | Gets the parent of a clone. |
IsA | Check if a clone is inherited from another. |
otlib. | Merely serves as a convenient wrapper and root prototype. |
Clone | Exactly the same as otlib.Clone. |
IsA | Exactly the same as otlib.IsA. |
Parent | Exactly the same as otlib.Parent. |
function Clone( base, callable, clone )
Creates a clone of an object.
base | The table to clone from. |
callable | An optional boolean. If true, __call is set on the clone and returns another clone. If the function Init is defined, it will be called with whatever parameters are passed to __call. Defaults to false. |
clone | An optional table to set as a clone, this value is what is returned. Defaults to an empty table. |
The table from the parameter clone.
v1.00 | Initial. |
function IsA( clone, base )
Check if a clone is inherited from another.
clone | The table clone that you want to know about. |
base | The table clone to check against. |
A boolean specifying whether or not clone is inherited from base.
v1.00 | Initial. |
Merely serves as a convenient wrapper and root prototype.
Clone | Exactly the same as otlib.Clone. |
IsA | Exactly the same as otlib.IsA. |
Parent | Exactly the same as otlib.Parent. |
Exactly the same as otlib.Clone.
Exactly the same as otlib.IsA.
Exactly the same as otlib.Parent.
Creates a clone of an object.
function Clone( base, callable, clone )
Gets the parent of a clone.
function Parent( clone )
Check if a clone is inherited from another.
function IsA( clone, base )