2 ms·
> If you want to experiment with it, you can use DasBetterC, i.e. running the D compiler with the `-betterC` I've been meaning to experiment with DasBetterC fo
by ratww 6y ago
> If you want to experiment with it, you can use DasBetterC, i.e. running the D compiler with the `-betterC`
I've been meaning to experiment with DasBetterC for a while, and I have a project C I've been wanting to migrate to something with proper strings (it's an converter for some binary file formats, but now I want it to import some obscure text formats too). Maybe that's the push I needed :)
After 20 minutes and about 250 out of 2098 lines converted, the error messages are very good and give very nice hints about what to change, I must say I prefer them to Rust's verbose messages.
- WalterBright 6y agoGreat! DasBetterC's trial-by-fire was when I used it to convert DMD's backend from C to D. I'm sure you already know this, but the trick to translating is to resist the urge to refactor and fix bugs while you're at it. Convert files one at a time, and after each run the test suite. Only after it's all converted and passing the test suite can refactoring and bug fixing be considered.