array-capacity


Vocabulary
sequences.private

Inputs and outputs
arrayan array
na non-negative fixnum


Class description
A predicate class whose instances are 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.


Definition
USING: kernel math math.private ;

IN: sequences.private

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