Paste: specialized-arrays bug
Author: | blei |
Mode: | factor |
Date: | Sat, 10 Oct 2009 20:04:08 |
Plain Text |
USING: classes.struct alien.c-types specialized-arrays ;
IN: test-ffi.a
STRUCT: foo { a int } ;
SPECIALIZED-ARRAY: foo
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
USING: alien.c-types classes.struct specialized-arrays ;
IN: test-ffi.b
STRUCT: foo { c double } { d int } ;
SPECIALIZED-ARRAY: foo
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
( scratchpad ) "test-ffi" load
Loading resource:work/test-ffi/a/a.factor
Loading resource:work/test-ffi/b/b.factor
( scratchpad ) USE: test-ffi.b
( scratchpad ) 2 <foo-array> .
foo-array{ S{ foo { a 0 } } S{ foo { a 0 } } }
New Annotation