-
Notifications
You must be signed in to change notification settings - Fork 1
__Struct__
Hyomoto edited this page Jun 13, 2021
·
3 revisions
Jump To | Go Back |
Methods | Variables |
---|
The struct base implements a type checking system and Self access for inherited constructors. The Type feature allows constructors to be looked up by their implement chains rather than plain text function name. Using struct_type( self, __Struct__ )
will return false because the implementation of Type is sufficient evidence. The Self variable will return the constructor id that the final struct was created from.
Jump To | top |
---|
Jump To | top |
---|
Name | Type | Initial | Purpose |
---|---|---|---|
Type | struct |
{} | Holds the type map so heritage can be inspected |
Self | int |
asset_get_index( instanceof( self ) ) | The index of the final constructor in the inheritance chain. |
Devon Mullane 2020