chickadee » coerce » basic-type-of

basic-type-of OBJECTprocedure

Returns a TYPE-TAG for the type of OBJECT.

TYPE-TAG is one-of unspecified, boolean, port, char, fixnum, flonum, string, symbol, pair, null, blob, procedure, pointer, tagged-pointer, swig-pointer, locative, record, or vector.

The types bucket & unbound are also identified but should never be available to non-system code.

The Types BASICTYPE tags are not used, specifically: float vs. flonum, undefined vs. unspecified, eof vs. eof-object, & struct vs. record. With enough feedback this can change.