|
|
1.1 ! root 1: ! 2: Initializers are called when the forth kernel is started, to do some ! 3: initialization stuff. ! 4: Pro: If code needs initialization you can keep this in place with the code ! 5: and don't need to patch the kernel itself to do so. ! 6: ! 7: There are 2 types of initializers. "Normal" and "Late" initializers. ! 8: ! 9: Since initializers are only called during startup, they don't need a name. ! 10: ! 11: Definition: ! 12: initializer ( xt -- ) ! 13: late-initializer ( xt -- ) ! 14: ! 15: Examples: ! 16: :noname <definition> ; initializer ! 17: ! 18: :noname ! 19: some-base initializations ! 20: ; late-initializer ! 21: ! 22: Late initializers are run after all ordinary initializers have ! 23: been executed. ! 24:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.