| : (Constant) Create DOES> @ ; |
: (Constant) Create DOES> @ ; |
| [THEN] |
[THEN] |
| |
|
| |
doer? :dovalue [IF] |
| |
: (Value) Header reveal dovalue: cfa, ; |
| |
[ELSE] |
| |
has? rom [IF] |
| |
: (Value) Create DOES> @ @ ; |
| |
[ELSE] |
| |
: (Value) Create DOES> @ ; |
| |
[THEN] |
| |
[THEN] |
| |
|
| : Constant ( w "name" -- ) \ core |
: Constant ( w "name" -- ) \ core |
| \G Define a constant @i{name} with value @i{w}. |
\G Define a constant @i{name} with value @i{w}. |
| \G |
\G |
| (Constant) A, ; |
(Constant) A, ; |
| |
|
| : Value ( w "name" -- ) \ core-ext |
: Value ( w "name" -- ) \ core-ext |
| (Constant) , ; |
(Value) , ; |
| |
|
| : AValue ( w "name" -- ) \ core-ext |
: AValue ( w "name" -- ) \ core-ext |
| (Constant) A, ; |
(Value) A, ; |
| |
|
| : 2Constant ( w1 w2 "name" -- ) \ double two-constant |
: 2Constant ( w1 w2 "name" -- ) \ double two-constant |
| Create ( w1 w2 "name" -- ) |
Create ( w1 w2 "name" -- ) |