Handbook
Glossary
Defining struct classes
Factor handbook
»
C library interface
»
Struct classes
Prev:
Struct class examples
Next:
Creating instances of structs
Struct classes are defined using a syntax similar to the
TUPLE:
syntax for defining tuple classes:
STRUCT:
PACKED-STRUCT:
Union structs are also supported, which behave like structs but share the same memory for all the slots.
UNION-STRUCT: