Parents: | classes |
Authors: | Joe Groff, Daniel Ehrenberg, John Benediktsson, Slava Pestov |
Class | Superclass | Slots |
invalid-struct-slot | tuple | token |
struct | tuple | (underlying) |
struct-bit-slot-spec | struct-slot-spec | bits signed? |
struct-c-type | abstract-c-type | fields return-in-registers? |
struct-must-have-slots | tuple | |
struct-slot-spec | slot-spec | type packed? |
Class | Superclass |
struct-class | tuple-class |
Word | Syntax |
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 } ... ; |
Word | Stack effect |
struct-slot-values | ( struct -- sequence ) |
Word | Stack effect |
<struct-boa> | ( class -- quot: ( ... -- struct ) ) |
bits: |
Word | Stack 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 ) |
Word | Stack 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 -- ? ) |
Vocabulary | Summary |
classes.struct.bit-accessors | |
classes.struct.prettyprint |
Vocabulary | Summary |
classes.struct.vectored | Derive a tuple of specialized arrays from a struct class |