summaryrefslogtreecommitdiff
path: root/devdocs/elisp/type-descriptors.html
blob: 833df003e080c5ed9c0029d7950347d61c78cda3 (plain)
1
2
3
4
5
6
 <h4 class="subsection">Type Descriptors</h4> <p>A <em>type descriptor</em> is a <code>record</code> which holds information about a type. Slot 1 in the record must be a symbol naming the type, and <code>type-of</code> relies on this to return the type of <code>record</code> objects. No other type descriptor slot is used by Emacs; they are free for use by Lisp extensions. </p> <p>An example of a type descriptor is any instance of <code>cl-structure-class</code>. </p><div class="_attribution">
  <p class="_attribution-p">
    Copyright &copy; 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
    <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Type-Descriptors.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Type-Descriptors.html</a>
  </p>
</div>