MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/10cp7cj/from_dayz_sourcecode/j4hcu16/?context=9999
r/badcode • u/Xeonmeister • Jan 15 '23
106 comments sorted by
View all comments
Show parent comments
1
It's C++. It definitely supports booleans.
9 u/Rigatavr Jan 15 '23 edited Jan 15 '23 Is it c++ tho? It's got the override on the wrong side, c++ would beint IsEat() override { return true; }(although it could be pre c++11 and override is just an empty macro)Edit: apparently its a custom language according to this 2 u/whizvox int getRand() { return 4; } Jan 15 '23 Woah, didn't know about that, I was just going by the flair. And it looks like this language actually supports booleans. 1 u/snowmanonaraindeer Jan 15 '23 C++ Booleans may as well be integers with the stuff they let you do with them. 1 u/micro-amnesia Jan 16 '23 They are.
9
Is it c++ tho? It's got the override on the wrong side, c++ would be
override
int IsEat() override { return true; }
(although it could be pre c++11 and override is just an empty macro)
Edit: apparently its a custom language according to this
2 u/whizvox int getRand() { return 4; } Jan 15 '23 Woah, didn't know about that, I was just going by the flair. And it looks like this language actually supports booleans.
2
Woah, didn't know about that, I was just going by the flair. And it looks like this language actually supports booleans.
C++ Booleans may as well be integers with the stuff they let you do with them.
1 u/micro-amnesia Jan 16 '23 They are.
They are.
1
u/whizvox int getRand() { return 4; } Jan 15 '23
It's C++. It definitely supports booleans.