Previous: Mutability, Up: Lisp Data Types [Contents][Index]
2.10 Type Hierarchy of Emacs Lisp ObjectsLisp object types are organized in a hierarchy, which means that types can derive from other types. Objects of type B (which derives from type A) inherit all the characteristics of type A. This also means that every object of type B is at the same time an object of type A from which it derives.
Every type derives from type t
.
New types can be defined by the user through defclass
or cl-defstruct
.
The Lisp Type Hierarchy for primitive types can be represented as follows:
For example type list
derives from (is a special kind of) type sequence
which itself derives from t
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4