4 ms·
We are talking about a language that goes so far as to make sure it functions on systems where the size of a byte is not 8, or where memory is not necessarily l
by Chabs 8y ago
We are talking about a language that goes so far as to make sure it functions on systems where the size of a byte is not 8, or where memory is not necessarily linearly addressed. People tend to forget how shockingly flexible standard-compliant C++ code actually is.
- haberman 8y agoI get that, but there's also precedent for cutting ancient things loose. Both C and C++ have finally decided to specify that signed integers are two's complement: https://twitter.com/jfbastien/status/989242576598327296?lang=en https://twitter.com/jfbastien/status/989242576598327296?lang... Also trigraphs are gone in C++17.
- pjmlp 8y agoTrigraphs are gone, but it took a while to win IBM representatives over it
- favorited 8y agoI don't think they were ever really won over, I think their concerns were heard and they begrudgingly acquiesced rather than vote down C++17. http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4210.pdf http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n421...
- gardaani 8y agoThis C++ code actually compiles with clang++. Incredible! int main(int argc, char *argv<::>) <% if (argc not_eq 1 and argc not_eq 2) <% return 1; %> return 0; %> https://en.wikipedia.org/wiki/Digraphs_and_trigraphs#C https://en.wikipedia.org/wiki/Digraphs_and_trigraphs#C
- bregma 8y agoDigraphs are still a part of the language. I would be more surprised if a conformant piece of code did not compile with a conformant compiler.