Random Chitchat 2018 - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Off Topic (https://forum.cuberite.org/forum-9.html) +--- Forum: Off Topic Discussion (https://forum.cuberite.org/forum-10.html) +--- Thread: Random Chitchat 2018 (/thread-3156.html) |
RE: Random Chitchat 2018 - xoft - 08-31-2018 I'm getting married in the morning! Ding dong the bells are gonna chime. For those uncultured individuals who haven't recognized the reference: https://youtu.be/MZip6SkMZsc?t=25 RE: Random Chitchat 2018 - NiLSPACE - 08-31-2018 Congratulations!!! RE: Random Chitchat 2018 - ShadowCone - 09-01-2018 Wohoo! Congraz to you and your wife! RE: Random Chitchat 2018 - ThuGie - 09-01-2018 Last i read he was dancing and what not, now he's getting married. I guess he be dancing a lot more from now on. Congrats . <- Will say its past 2am, tired. not sure if the above text sounds normal. uhmz.. RE: Random Chitchat 2018 - xoft - 09-03-2018 It was perfect. RE: Random Chitchat 2018 - tonibm19 - 09-06-2018 Congratulations and best of luck! RE: Random Chitchat 2018 - xoft - 10-22-2018 Dear diary, today exceptions bit me unusually hard. I am seriously considering filing a compiler bug report... When thinking about exceptions, one would argue that any code that is after a "throw" statement will never get executed, right? Try the following code in MSVC2017 debug build: #include <iostream> using namespace std; int main() { cout << "Start" << endl; class TestException: std::runtime_error { public: TestException(): std::runtime_error("TestException") { } }; try { throw TestException(); cout << "After throw" << endl; } catch (const std::runtime_error & exc) { cout << "Caught a runtime_error" << endl; } cout << "Done" << endl; return 0; } So, what does it do in reality? It prints "Start", "After throw", and "Done", and exits with code 0. WTF?!? How can the "After throw" line be printed?? Let's try release build, then. That one depends whether you run it in the MSVC debugger, or standalone. In the debugger, it prints "Start", "After throw" and jumps into nonexistent memory. WTF again? Standalone, it finally behaves as one would expect: prints "Start" and crashes. I've spent a good hour hunting this bug. Turns out, the only thing I forgot in the code above is the "public" inheritance keyword in TestException's declaration. But still, without it the code behaves just weird. RE: Random Chitchat 2018 - NiLSPACE - 10-23-2018 I guess it kind of makes sense that it didn't catch the error, but I wouldn't expect it to continue to 'after throw'. RE: Random Chitchat 2018 - tonibm19 - 12-25-2018 Merry Christmas to all! It's sad to see this project die, but you did a really good job. Cuberite is one of the things that inspired me to study Computer Science at university (i'm at second course now). I did my first "semi-serious" programming in Lua with the Cuberite API. I really apreciate all the work that you put into this project. Best of luck! RE: Random Chitchat 2018 - tigerw - 12-26-2018 Merry Christmas all! Die? Pfft. Heroes never die! Maybe just on a sabbatical, that's all. |