User Tools


Function ARRAY-ELEMENT-TYPE

Syntax

  • array-element-type arraytypespec

Arguments and Values

Description

Returns a type specifier which represents the actual array element type of the array, which is the set of objects that such an array can hold.

(Because of array upgrading, this type specifier can in some cases denote a supertype of the expressed array element type of the array.)

Examples

(array-element-type (make-array 4))

T

(array-element-type (make-array 12 :element-type '(unsigned-byte 8)))

implementation-dependent

(array-element-type (make-array 12 :element-type '(unsigned-byte 5)))

implementation-dependent

(array-element-type (make-array 5 :element-type '(mod 5)))

(mod 5) or (mod 8) or fixnum or t ;;; or any other type of which (mod 5) is a subtype.

Affected By

Exceptional Situations

Should signal an error of type type-error if its argument is not an array.

See Also

Notes

None.

\issue{ARRAY-TYPE-ELEMENT-TYPE-SEMANTICS:UNIFY-UPGRADING}