exciting programming problem in touchHLE: supporting inheritance for instance variables. look at how gnarly this is:

https://github.com/hikari-no-yume/touchHLE/commit/ae5b7a8d6513e3204d3c2eab1f250cdcf8930ee5

i have an idea for a neater solution, but it will involve descending further into the land of Anys and 'statics and 'as and dyns :3

THE BAD NEWS: i have ran head-first into the borrow checker struggling with mutable borrows in loops again ;_;
THE GOOD NEWS: unsafe { &mut *(a as *mut _) } is my friend and would never hurt me :3

Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!