UNION-STRUCT:
Factor handbook > C library interface > Struct classes > Defining struct classes

Prev:PACKED-STRUCT:


Vocabulary
classes.struct

Syntax
UNION-STRUCT: class { slot type } { slot type } ... ;


Inputs and outputs
classa new struct class to define
slotsa list of slot specifiers


Word description
Defines a new struct type where all of the slots share the same storage. See STRUCT: for details on the syntax.

See also
struct, STRUCT:

Definition