RosettaCodeData/Task/Enumerations/Forth/enumerations-5.fth

3 lines
108 B
Forth
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
: SIZED-ENUM ( n s -<name>- n+s ) OVER CONSTANT + ;
: CELL-ENUM ( n -<name>- n+cell ) CELL SIZED-ENUM ;