You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is more of a proof of concept for future conversion.
Here's a few principles used to do the conversion from `T*` to `T[]`:
- If it's a string, the character at `s[$]` must be `'\0'`.
It allows code to freely go back and forth between `char*` and `char[]`.
- Move the implementation to extern(D) and slices, and provide C++ wrapper.
- Stay on topic: those changes only focus on one parameter / module / function,
because it's very easy to end up with a giant change that doesn't work.
- If `'\0'` termination is required (e.g. calling a C function),
changing from `char*` to `char[]` should can be done using `toCStringThen`.
0 commit comments