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

Prev:STRUCT:
Next:UNION-STRUCT:


Vocabulary
classes.struct

Syntax
PACKED-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 with no alignment padding between slots or at the end. In all other respects, behaves like STRUCT:.

Definition