RedFred, note that
    
    
    proc test_arr(): seq[int] {.cdecl, exportc} =
    ...
    return list
    
    

may work better, as a seq is already a pointer. You don't want a pointer to 
that pointer. Of course the seq is more than a plain array internally, there is 
at least the size member and the capacity. I don't know the exact layout. Maybe 
try "return addr list[0]"

And note the typo of the cat, it should be "dealloc" of course.

I hope you buyed Dom96's book -- maybe in the final release appearing at the 
end of this month all this is described in detail. 

Reply via email to