2 ms·
I agree that this technique of writing my own C compiler isn't going to work so well with C++: 1. Even though I have written a C++ compiler, it's a C++98 compi
by WalterBright 6y ago
I agree that this technique of writing my own C compiler isn't going to work so well with C++:
1. Even though I have written a C++ compiler, it's a C++98 compiler and C++, like the Winchester House, accretes new features constantly, meaning keeping it up to date is impractical.
2. C++ semantics are different enough from D that it is impractical to mechanically map C++ to D. You can do bits and pieces, and dpp does that, but seamlessly doing the bulk of it isn't going to work. (C can be mapped nearly 100% to D.)
dpp uses libclang to try and map what it can to D.