Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4681384yit's like someone didn't know what main() is, or does and decided to roll their own dice instead. 😦
I can't decide which is worse. -
Jesus fucking Christ. What an absolute dong-head thought this would be a good idea?!?
-
Wait c++ will consider namespaces and variables and functions in the same scope ???
That makes no sense ! -
Wow. Just wow. I have now tried several attempts to resolve this in a little test file. There is really no way around isolating off the main function into its own module to avoid the name clash. Whoever did this is either a complete idiot... or a real badass C++ troll.
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
sam966911Hats off to this lady .... I would have just flipped the machine
I really wonder who is that genius from API team who decided that a namespace with the name "main" is a great fucking idea...
Because of this shit I've had to resort to hacky pImpl implementation of the API.
rant
c++
idiot