1 USING: help.syntax help.markup words.symbol words compiler.units ;
5 { $class-description "The class of symbols created by " { $link POSTPONE: SYMBOL: } "." } ;
8 { $values { "word" word } }
9 { $description "Defines the word to push itself on the stack when executed. This is the run time equivalent of " { $link POSTPONE: SYMBOL: } "." }
10 { $notes "This word must be called from inside " { $link with-compilation-unit } "." }
11 { $side-effects "word" } ;
13 ARTICLE: "words.symbol" "Symbols"
14 "A symbol pushes itself on the stack when executed. By convention, symbols are used as variable names (" { $link "namespaces" } ")."
19 "Defining symbols at parse time:"
24 "Defining symbols at run time:"
25 { $subsections define-symbol }
26 "Symbols are just compound definitions in disguise. The following two lines are equivalent:"
29 ": foo ( -- value ) \\ foo ;"