Even the compilers are in on some jokes: $ gcc -xc - : In function ‘main’: :1:45: error: ‘long long long’ is too long for GCC
Retiring a favourite C++ joke
21–30 of 151 posts
Re: Retiring a favourite C++ joke
#22There's dozens of people who would get it... DOZENS!
Re: Retiring a favourite C++ joke
#23 When writing a specialization,
be careful about its location;
or to make it compile
will be such a trial
as to kindle its self-immolation.
https://eel.is/c++draft/temp.expl.spec#8Re: Retiring a favourite C++ joke
#24Re: Retiring a favourite C++ joke
#25My favorite C++ joke is: Have you heard about the new object-oriented version of COBOL? It’s called “ADD 1 TO COBOL”
Re: Retiring a favourite C++ joke
#26Re: Retiring a favourite C++ joke
#27 #include
using namespace std;
class BadProgrammer {
public:
void yep() {
delete this;
}
};
int main() {
auto x = BadProgrammer{};
x.yep();
cout
g++ -Wall -Wextra -Wpedantic main.cc # compiles just fineclang++ -Wall -Wextra -Wpedantic main.cc # also compiles just fine
Re: Retiring a favourite C++ joke
#28Do modern cars even allow you to step on the accelerator and the brake at the same time?
Re: Retiring a favourite C++ joke
#29There's dozens of people who would get it... DOZENS!
According to the TIOBE index, C++ is the fourth most popular programming language, and has been around for over 35 years, so easily a couple thousand people. The question is how many of them are on HN (probably dozens).
Re: Retiring a favourite C++ joke
#30There's dozens of people who would get it... DOZENS!
Uses C++. Shortly after: I've made a huge mistake.
Lindsay: Well, did it work for those people?
Tobias: No, it never does. I mean, these people somehow delude themselves into thinking it might, but... but it might work for us.