Handbook
Glossary
enum>number ( enum -- number )
Factor handbook
»
C library interface
»
Passing data between Factor and C
»
Enumeration types
Prev:
define-enum ( word base-type members -- )
Next:
number>enum ( enum-c-type -- quot )
Vocabulary
alien
.
enums
Inputs
enum
an enum word
Outputs
number
the corresponding number value
Word description
Converts an enum to a number.
See also
ENUM:
,
define-enum
,
number>enum
Definition
IN:
alien.enums
GENERIC:
enum>number
( enum -- number )
foldable
flushable
Methods
USING:
alien.enums
math
;
M:
integer
enum>number
;
USING:
alien.enums
words
;
M:
word
enum>number
"enum-value"
word-prop
;