1 USING: help.markup help.syntax quotations strings ;
5 { $description "Called on startup as part of the boot quotation to initialize the runtime and prepare it for running user code." } ;
7 { boot boot-quot set-boot-quot } related-words
10 { $values { "quot" quotation } }
11 { $description "Outputs the initial quotation called by the VM on startup." } ;
14 { $values { "quot" quotation } }
15 { $description "Sets the initial quotation called by the VM on startup. This quotation must begin with a call to " { $link boot } ". The image must be saved for changes to the boot quotation to take effect." }
16 { $notes "The " { $link "tools.deploy" } " tool uses this word." } ;
19 { $var-description "An association list mapping string identifiers to quotations to be run on startup." } ;
22 { $description "Calls all initialization hook quotations." } ;
25 { $values { "quot" quotation } { "name" string } }
26 { $description "Registers a startup hook. The hook will always run when Factor is started. If the hook was not already defined, this word also calls it immediately." } ;
28 { init-hooks do-init-hooks add-init-hook } related-words
30 ARTICLE: "init" "Initialization and startup"
31 "When Factor starts, the first thing it does is call a word:"
33 "Next, initialization hooks are called:"
34 { $subsection do-init-hooks }
35 "Initialization hooks can be defined:"
36 { $subsection add-init-hook }
37 "The boot quotation can be changed:"
38 { $subsection boot-quot }
39 { $subsection set-boot-quot } ;