News for hackers. Stuff that matters.
Re:Cppfront, Herb Sutter's proposal for a new C++ syntax by criddell on Saturday September 17, 2022 @12:03PM (#32878608)
Both versions are supposed to return an int but neither has a return statement. Is that not an error?
Re:Cppfront, Herb Sutter's proposal for a new C++ syntax by e4m2 on Saturday September 17, 2022 @12:14PM (#32878675)
The main function returns zero implicitly if control flow reaches the end without encountering a return statement.
Re:Cppfront, Herb Sutter's proposal for a new C++ syntax by LeSaucy on Saturday September 17, 2022 @12:32PM (#32878807)
It wouldn't be C++ without undefined behaviour.