In reply to @anuke "So I'm told by": you can get ptr of shader (that is not `var ShaderObj` but `ShaderObj`) then you can: https://nim-lang.org/docs/manual.html#types-mixing-gc-ed-memory-with-nimptr just call reset on string, or cast ptr to var (i don't honestly remember, will it work correct or no)