#common-lisp
New type specifiers can come into existence in two ways.
First, defining a new structure type with defstruct automatically
causes the name of the structure to be a new type specifier symbol.
Second, the deftype special form can be used to define new type-specifier
abbreviations.
If you want to change selection, open document below and click on "Move attachment"
4.7. Defining New Type Specifiershead><head>4.7. Defining New Type Specifiers
Common Lisp the Language, 2nd Edition
Next: Type Conversion Function
Up: Type Specifiers
Previous: Type Specifiers That
4.7. Defining New Type Specifiers
New type specifiers can come into existence in two ways.
First, defining a new structure type with defstruct automatically
causes the name of the structure to be a new type specifier symbol.
Second, the deftype special form can be used to define new type-specifier
abbreviations.
[Macro]
deftype name lambda-list [[ {declaration}* | doc-string ]] {form}*
This is very similar to a defmacro form: name is the
symbol that identifies the type specifier be Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details