Normally, functions are declared by stating their return type, followed by the name and the parameter list, plus the function body (the latter two is what makes them functions). There is no special keyword required, and the double arrow notation isn't a thing either. I'm only aware of a single arrow (to access members of a pointer) and the shift operator (>>), but of course C++ does allow you to overload operators and I believe even declare your own.
Timeline
Post
Remote status
Context
6
I haven't used C++ in a long time but I've never seen or heard of this style of declaration. Especially since "union" is a reserved word in C.
Normally, functions are declared by stating their return type, followed by the name and the parameter list, plus the function body (the latter two is what makes them functions). There is no special keyword required, and the double arrow notation isn't a thing either. I'm only aware of a single arrow (to access members of a pointer) and the shift operator (>>), but of course C++ does allow you to overload operators and I believe even declare your own.
Normally, functions are declared by stating their return type, followed by the name and the parameter list, plus the function body (the latter two is what makes them functions). There is no special keyword required, and the double arrow notation isn't a thing either. I'm only aware of a single arrow (to access members of a pointer) and the shift operator (>>), but of course C++ does allow you to overload operators and I believe even declare your own.
The fact that basically everyone who saw this post actually thought that this might be valid c++ even if just for a split second makes me unbelievably happy
Can't fool me, son. I was learning C++ back when you were still shitting your diapers.
I am so sorry man I didn't know that happened to you
It's okay man, I've gotten over it
I watched this today and found it quite enjoyable
You can tell this guy is off the deep end with this shit. Pure hatred in his voice.
https://www.youtube.com/watch?v=7fGB-hjc2Gc
You can tell this guy is off the deep end with this shit. Pure hatred in his voice.
https://www.youtube.com/watch?v=7fGB-hjc2Gc
Got 5 minutes in cant wait for the next 2 hours!!!