 A'      IS ${T}-array
 >A'     IS >${T}-array
 <A'>    IS <${A'}>
+A'{     IS ${A'}{
 
 A       DEFINES-CLASS direct-${T}-array
 <A>     DEFINES <${A}>

! See http://factorcode.org/license.txt for BSD license.
USING: functors sequences sequences.private kernel words classes
math alien alien.c-types byte-arrays accessors
specialized-arrays ;
IN: specialized-arrays.direct.functor

FUNCTOR: define-direct-array ( T -- )

M: A like drop dup A instance? [ >A' ] unless ;
M: A new-sequence drop <A'> ;

M: A pprint-delims drop \ A'{ \ } ;

M: A >pprint-sequence ;

M: A pprint* pprint-object ;

INSTANCE: A sequence

;FUNCTOR
