if you use C backend, ptr char basically equals to cstring > I call alloc () and then cast it to ptr char, is this wrong?
it's ok, as long as you don't forget to call free() or you can do something like this: var x = newString(someLen) call_some_c_func(x.cstring) # and the gc will free the x for you