documentation:entrypoint
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
documentation:entrypoint [2020/02/22 00:25] – [Basic usage] jamieswhiteshirt | documentation:entrypoint [2023/06/10 12:04] – ↷ Links adapted because of a move operation mineblock11 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Entrypoints ====== | ====== Entrypoints ====== | ||
- | Entrypoints are declared in a mod's [[documentation: | + | Entrypoints are declared in a mod's [[documentation: |
An entrypoint is exposed under some name, refers to some code object and must be based on a familiar **entrypoint prototype**. An entrypoint prototype defines the name (such as " | An entrypoint is exposed under some name, refers to some code object and must be based on a familiar **entrypoint prototype**. An entrypoint prototype defines the name (such as " | ||
Line 26: | Line 26: | ||
</ | </ | ||
- | **Caution: | + | **Caution: |
==== Built-in entrypoint prototypes ==== | ==== Built-in entrypoint prototypes ==== | ||
Line 55: | Line 55: | ||
Mods can call each others' | Mods can call each others' | ||
- | Entrypoints | + | Entrypoint instances |
+ | |||
+ | Entrypoint instances are memoized by their name and also their type. Using the same code reference for multiple entrypoints will result in multiple instances. Though highly absurd in practice, if '' | ||
==== A note about load order and phases (or a lack thereof) ==== | ==== A note about load order and phases (or a lack thereof) ==== |
documentation/entrypoint.txt · Last modified: 2023/12/27 13:07 by 34.220.124.230