C-TYPE:


Vocabulary
alien.syntax

Syntax
C-TYPE: type


Inputs
None

Outputs
None

Word description
Defines a new, opaque C type. Since it is opaque, type will not be directly usable as a parameter or return type of a FUNCTION: or as a slot of a STRUCT:. However, it can be used as the type of a pointer.

C-TYPE: can also be used to forward declare C types, allowing circular dependencies to occur between types. For example:
C-TYPE: forward STRUCT: backward { x forward* } ; STRUCT: forward { x backward* } ;


Notes
Primitive C types are displayed using C-TYPE: syntax when they are seen.

Definition