Sure. Still, how will your users will use cstring ? Nim standard lib, strutils, 
strformat.. expects Nim string. If you keep it as cstring in a Nim object, it 
will have to be converted to Nim string on-the-fly on every call site every 
time it's used. I'm just saying maybe you should consider to copy it to Nim 
string to store it in Nim side and call g_free on the original.

Reply via email to