classes.struct vocabulary
Factor handbook ยป Vocabulary index


Documentation
Struct classes

Metadata
Parents:classes
Authors:Joe Groff, Daniel Ehrenberg, John Benediktsson, Slava Pestov


Words

Tuple classes
ClassSuperclassSlots
invalid-struct-slot tupletoken
struct tuple(underlying)
struct-bit-slot-spec struct-slot-specbits signed?
struct-c-type abstract-c-typefields return-in-registers?
struct-must-have-slots tuple
struct-slot-spec slot-spectype packed?


Predicate classes
ClassSuperclass
struct-class tuple-class


Parsing words
WordSyntax
PACKED-STRUCT:PACKED-STRUCT: class { slot type } { slot type } ... ;
S@S@ class alien
STRUCT:STRUCT: class { slot type } { slot type } ... ;
S{S{ class slots... }
UNION-STRUCT:UNION-STRUCT: class { slot type } { slot type } ... ;


Generic words
WordStack effect
struct-slot-values( struct -- sequence )


Macro words
WordStack effect
<struct-boa>( class -- quot: ( ... -- struct ) )


Symbol words
bits:


Ordinary words
WordStack effect
(malloc-struct)( class -- struct )
(struct)( class -- struct )
<struct-slot-spec>( name c-type attributes -- slot-spec )
<struct>( class -- struct )
define-packed-struct-class( class slots -- )
define-struct-class( class slots -- )
define-union-struct-class( class slots -- )
invalid-struct-slot( token -- * )
large-struct?( type -- ? )
malloc-struct( class -- struct )
memory>struct( ptr class -- struct )
offset-of( field struct -- offset )
read-struct( class -- struct )
struct-must-have-slots( -- * )
struct-prototype( class -- prototype )
struct-size( class -- n )
struct-slot-class( c-type -- class' )
struct-slots( struct-class -- slots )


Class predicate words
WordStack effect
invalid-struct-slot?( object -- ? )
struct-bit-slot-spec?( object -- ? )
struct-c-type?( object -- ? )
struct-class?( object -- ? )
struct-must-have-slots?( object -- ? )
struct-slot-spec?( object -- ? )
struct?( object -- ? )


Files


Metadata files


Children from resource:basis
VocabularySummary
classes.struct.bit-accessors
classes.struct.prettyprint


Children from resource:extra
VocabularySummary
classes.struct.vectoredDerive a tuple of specialized arrays from a struct class


Children
VocabularySummary
classes.struct.private