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.
- Howto make arbitrary macro parameters persistant (non vola... Stefan_Salewski
- Re: Howto make arbitrary macro parameters persistant ... Araq
- Re: Howto make arbitrary macro parameters persist... Stefan_Salewski
- Re: Howto make arbitrary macro parameters per... Stefan_Salewski
- Re: Howto make arbitrary macro parameters... Stefan_Salewski
- Re: Howto make arbitrary macro param... Stefan_Salewski
- Re: Howto make arbitrary macro p... Stefan_Salewski
