Yes sure, Nim's strings are garbage collected, so GC_ref is available. But the 
user can pass really arbitrary data, maybe plain ints. Maybe I should just use 
"when compiles(GC_ref(data))". Maybe not the smartest solution, but should 
work. Then I only still have to learn how I copy data, I guess something like 
malloc() and copyMem() is available... Not Sure about deepCopy still. 

Reply via email to