> If Nim side owns the string why dont you just convert it to Nim string in the 
> first place ? Otherwise you have to scan all cstring to query it's size every 
> time but getting cstring pointer out of Nim string is effortless.

Do Nim strings hold the null terminator at the end like Delphi's bodged strings 
did? If so, might not be a bad idea unless its a section of code where that is 
going to invite a lot of undesired copying.

Reply via email to