VocabularyliteralsSyntax$ word
Word descriptionExecutes
word at parse time and adds the result(s) to the parser accumulator.
Notesword's definition is looked up and
called at parse time, so words that reference words in the current compilation unit cannot be used with
$.
ExamplesUSING: kernel literals prettyprint ;
IN: scratchpad
CONSTANT: five 5
{ $ five } .
{ 5 }
USING: kernel literals prettyprint ;
IN: scratchpad
: seven-eleven ( -- a b ) 7 11 ;
{ $ seven-eleven } .
{ 7 11 }
See also$[,
${Definition