《通链参考手册》


Function ARRAY-ELEMENT-TYPE

●语法设定:

array-element-type array => typespec

●参数和值:

array---an array.

typespec---a type specifier.

●详情:

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.)

●例子:

 (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)))
could be (mod 5), (mod 8), fixnum, t, or any other type of which (mod 5) is a subtype.

●受制于:

The implementation.

●例外情况:

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

●更多信息:

array, make-array, subtypep, upgraded-array-element-type

●说明: 无。


X3J13设计清单非标准部分,可查下面章节:


◇首页 § ◎章节目录 § □内容索引 § ○符号索引 § △术语表 § ※设计草案