[top][index]
search for:

basictype -- the basic type of an object

Synopsis:

  • Usage: T = basictype x
  • Input:
  • x: anything
  • Output:
  • T: class representing the basic type of x
  • Every thing has basic type which tells what sort of thing it really is, internally.

    The parent of a basic type is Thing, and this property characterizes the basic types. The basic type of an object x is defined to be the ancestor of the class of x that is a basic type.

    Let's compute a list of all the basic types:

    i1 : stack sort (toString \
              select(values symbolTable(), i -> parent value i === Thing)
              )

    o1 = BasicList
         Boolean
         Database
         File
         Function
         Handle
         HashTable
         Net
         Nothing
         QQ
         RR
         Symbol
         Thing
         ZZ

    See also:

  • basic types -- an overview
  • Ways to use basictype :

  • basictype Thing

  • [top][index]
    search for: