bind
Jump to navigation
Jump to search
#bind is a ZZT-OOP command which allows replacing the currently executed Object code with that of a different Object present on the board. To do so, it takes a single parameter - the name of the Object whose code is to be used.
Bugs
- In unmodified ZZT, #bind always causes the memory allocated by previously used code to be freed, without checking if the code is also bound to other Objects. As this does not clear the memory or invalidate the pointer to said code, execution can continue as normal. However, any dynamic memory allocation - such as opening text windows - may cause corruption and instability.
ZZT-OOP | |
---|---|
Prefixes |
|
Messages | |
Directions | |
Flags | |
Commands |