Type numbers - Factor Documentation (original) (raw)

Type numbers
Factor handbook » The implementation » VM memory layouts

Next: Tagged pointers

Corresponding to every built-in class is a built-in type number. An object can be asked for its built-in type number:
tag ( object -- n )

Built-in type numbers can be converted to classes, and vice versa:

type>class ( n -- class )

type-number ( class -- n )
num-types

See also
Built-in classes