Concatenative language
Concatenative topics
Concatenative meta
Other languages
Meta
Concatenative programs typically use the stack to store values temporarily while they perform calculations or to pass arguments from one word to another. When programmers need to store numbers more permanently, they use variables and constants. == Forth == To create a variable: [{VARIABLE DATE}] To store a variable: [{12 DATE !}] To read a variable: [{DATE @}] === Locals in gforth === The curlies notation allow to do assignment of variables during the word definition. [{: swap { a b -- b a } b a ;}]
Describe this revision:
Save