3 ms·
C++ did this, what, 40 years ago? Then V, Zig, now D. I agree, in ten years most compilers and even interpreters will do it.
by pencilguin 4y ago
C++ did this, what, 40 years ago? Then V, Zig, now D. I agree, in ten years most compilers and even interpreters will do it.
- WalterBright 4y agoC++ did it the other way around. It added C++ to a C compiler.
- pencilguin 4y agoBut it didn't. In very few cases was a C compiler extended to compile C++. Instead, a C++ compiler just has to know how to compile C, and to link with C objects compiled separately.
- WalterBright 4y agoBut it did. I wrote the first native C++ compiler, by extending the Zortech C compiler.
- pencilguin 4y agoThat does not contradict my statement.
- Imperatorn 4y agoThat's a less correct description than what Walter gave