classes.struct vocabulary - Factor Documentation (original) (raw)
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
Class | Superclass | Slots |
---|---|---|
![]() |
![]() |
token |
![]() |
![]() |
(underlying) |
![]() |
![]() |
bits signed? |
![]() |
![]() |
fields return-in-registers? |
![]() |
![]() |
|
![]() |
![]() |
type packed? |
Predicate classes
Class | Superclass |
---|---|
![]() |
![]() |
Parsing words
Word | Syntax |
---|---|
![]() |
PACKED-STRUCT: class { slot type } { slot type } ... ; |
![]() |
S@ class alien |
![]() |
STRUCT: class { slot type } { slot type } ... ; |
![]() |
S{ class slots... } |
![]() |
UNION-STRUCT: class { slot type } { slot type } ... ; |
Generic words
Word | Stack effect |
---|---|
![]() |
( struct -- sequence ) |
Macro words
Word | Stack effect |
---|---|
![]() |
( class -- quot: ( ... -- struct ) ) |
Symbol words
Ordinary words
Word | Stack effect |
---|---|
![]() |
( class -- struct ) |
![]() |
( class -- struct ) |
![]() |
( name c-type attributes -- slot-spec ) |
![]() |
( class -- struct ) |
![]() |
( class slots -- ) |
![]() |
( class slots -- ) |
![]() |
( class slots -- ) |
![]() |
( token -- * ) |
![]() |
( type -- ? ) |
![]() |
( class -- struct ) |
![]() |
( ptr class -- struct ) |
![]() |
( field struct -- offset ) |
![]() |
( class -- struct ) |
![]() |
( -- * ) |
![]() |
( class -- prototype ) |
![]() |
( class -- n ) |
![]() |
( c-type -- class' ) |
![]() |
( struct-class -- slots ) |
Class predicate words
Word | Stack effect |
---|---|
![]() |
( object -- ? ) |
![]() |
( object -- ? ) |
![]() |
( object -- ? ) |
![]() |
( object -- ? ) |
![]() |
( object -- ? ) |
![]() |
( object -- ? ) |
![]() |
( object -- ? ) |
Files
resource:basis/classes/struct/struct.factor
resource:basis/classes/struct/struct-docs.factor
resource:basis/classes/struct/struct-tests.factor
Metadata files
resource:basis/classes/struct/authors.txt
resource:basis/classes/struct/summary.txt
Children from resource:basis
Vocabulary | Summary |
---|---|
![]() |
|
![]() |
Children from resource:extra
Vocabulary | Summary |
---|---|
![]() |
Derive a tuple of specialized arrays from a struct class |