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.
- How to define a =copy hook for a distinct cstring type? Isofruit
- How to define a =copy hook for a distinct cstring type? elcritch
- How to define a =copy hook for a distinct cstring type? sky_khan
- How to define a =copy hook for a distinct cstring t... Isofruit
- How to define a =copy hook for a distinct cstri... Isofruit
- How to define a =copy hook for a distinct ... Araq
- How to define a =copy hook for a disti... sky_khan
- How to define a =copy hook for a d... Isofruit
- How to define a =copy hook for a d... icedquinn
- How to define a =copy hook for a d... icedquinn
- How to define a =copy hook for a d... sky_khan
