long-array? ( object -- ? ) (original) (raw)

long-array? ( object -- ? )

Vocabulary
specialized-arrays.instances.alien.c-types.long

Inputs and outputs

object an object
? a boolean

Word description
Tests if the object is an instance of the long-array class.

Definition

USING: classes.tuple.private kernel slots.private ;

IN: specialized-arrays.instances.alien.c-types.long

: long-array? ( object -- ? )
dup tuple?
[ layout-of 7 slot \ long-array eq? ] [ drop f ] if ;