variable  ( comp: -- <name> | exec: -- addr )

published: 28 January 2023 / updated 31 January 2023

Lire cette page en français

 

vocabulary: forth

Creation word. Defines a simple precision variable.

Example:

\ define variable speed 
variable speed 
35 speed !        \ store 32 in speed 
10 speed +!       \ increment content of speed 
speed @ .         \ display 45