box? ( object -- ? )


Vocabulary
regexp.compiler.private

Inputs and outputs
objectan object
?a boolean


Word description
Tests if the object is an instance of the box class.

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

IN: regexp.compiler.private

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