but it's not an &c_char? But yes, having safer bindings using pointers works. you still need the raw stuff a lot
Because a transparent type that is basically just the pointer can't be passed to a function that takes a pointer
-
-
Well yeah, my argument is still to have that type in the function signature as well, so you never touch a raw pointer at all
-
Sure, but now you have to change both `CString` *and* whatever it's being passed to, which you may or may not have control of. So I can't just release a "better CString" crate, I also have to release a "better libc" or whatever else to go along with it.
- 6 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.