a friend of mine asked if it makes sense to define your own wrapper class for
SDL_Window
the way Lazy Foo does it. I told him there’s no reason to do that in modern C++, becausestd::unique_ptr
can do everything for you anyways.freeing C memory automatically using
std::unique_ptr
andstd::shared_ptr
<sub>on another note, I did read a blog post about this once somewhere, but couldn’t be bothered to find it. so there you go! I made a post about this too.</sub>
I’ve been thinking recently how cool it is to be able to single-step into Unreal Engine’s source code and edit it while you’re working with it, and how uncool it is that I can’t do the same thing easily in the Rust world.
after all, aren’t we just dealing with a bunch of code running on the computer? why not let me poke at it?
systems are just a bunch of code
can you can read other people’s code? bonus: dismantling Unreal Engine’s GENERATED_BODY