Name

constant:core — definining primitive

Synopsis

FORTH
CONSTANT ( value 'name' -- )(); 
 ;

Description

CREATE a new word with runtime ((CONSTANT)) so that the value placed here is returned everytime the constant's name is used in code. See VALUE for constant-like names that are expected to change during execution of the program. In a ROM-able forth the CONSTANT-value may get into a shared ROM-area and is never copied to a RAM-address.

dpANS .6.1.0950 - standard forth word