mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-03-12 07:50:26 -07:00
typep: handle * type
This is the same as T according to '2.4.3 Type Specifiers' in the spec. Fixes #240. "If a type specifier is a list, the car of the list is a symbol, and the rest of the list is subsidiary type information. Such a type specifier is called a compound type specifier. Except as explicitly stated otherwise, the subsidiary items can be unspecified. The unspecified subsidiary items are indicated by writing *. For example, to completely specify a vector, the type of the elements and the length of the vector must be present."
This commit is contained in:
parent
4fcf48926b
commit
672ded2dc6
1 changed files with 1 additions and 1 deletions
|
|
@ -539,7 +539,7 @@ Returns T if X belongs to TYPE; NIL otherwise."
|
|||
(AND (dolist (e i t)
|
||||
(unless (typep object e) (return nil))))
|
||||
(SATISFIES (funcall (car i) object))
|
||||
((T) t)
|
||||
((T *) t)
|
||||
((NIL) nil)
|
||||
(BIGNUM (and (integerp object) (not (si::fixnump object))))
|
||||
(STANDARD-CHAR
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue