array-capacity - Factor Documentation

array-capacity


Vocabulary
sequences .private

Class description
A predicate class whose instances are fixnums of valid array sizes for the current architecture. The minimum value is zero and the maximum value is max-array-capacity .

Word description
Low-level array length accessor.

Warning
This word is in the sequences .private vocabulary because it is unsafe. It does not check types, so improper use can corrupt memory.


See also
integer-array-capacity

Definition
USING: kernel math math.private ;

IN: sequences.private

PREDICATE: array-capacity < fixnum
dup 0 fixnum>= [ 288230376151711743 fixnum<= ] [ drop f ] if
;

AltStyle によって変換されたページ (->オリジナル) /