Devlog #0 — Why I’m Building My Own RPG Maker-like Engine in GoHi everyone 👋 I’ve always been drawn to RPG Maker-style games — small towns to explore, characters to talk to, puzzles to solve, and stories that unfold through simple but powerful interactions. When3 min read·notes.mukyu.devSep 7, 2025
sizeof array在 C++ 中,對於陣列的大小處理,sizeof 在函式中有個容易踩雷的陷阱:如果你把陣列當作參數傳入函式,它會退化成指標。這會導致 sizeof 傳回的是指標的大小,而不是陣列的實際大小。 Example #include <iostream> void test1(char (&a)[10]) { std::cout << "test1 called with array of si2 min read·notes.mukyu.devJun 14, 2025
簡介 C++ 的 Type Erase (用多型和模板做 Duck Type)簡介 C++ 的 Type Erase 技術,使用多型和模板實現 Duck Type。3 min read·notes.mukyu.devMay 14, 2024
int64_t Literal Constant?How to handle int64_t literal constants across platforms using INT64_C, static_cast, and other methods1 min read·notes.mukyu.devMay 6, 2024