3 ms·
This "you got your Objective-C in my Rust!" syntax is just... :chef-kiss: https://github.com/hikari-no-yume/touchHLE/blob/trunk/src/frameworks/foundation/ns_bu
by favorited 4y ago
This "you got your Objective-C in my Rust!" syntax is just... :chef-kiss:
https://github.com/hikari-no-yume/touchHLE/blob/trunk/src/frameworks/foundation/ns_bundle.rs https://github.com/hikari-no-yume/touchHLE/blob/trunk/src/fr...
- deleted 4y ago[deleted]
- tylerag 4y agoI had to look, I couldn't help myself. https://github.com/hikari-no-yume/touchHLE/blob/e516cd13f9bef4b3d7744230aaf94f92ad0b8394/src/objc/classes.rs#L174 https://github.com/hikari-no-yume/touchHLE/blob/e516cd13f9be... It's actually not terrible.
- favorited 4y agoI had seen macros to support a quasi-message-send signature from Rust (`let value = [[cls.into() numberWithUnsignedInt:42u32] stringValue];`), but never method implementations! https://belkadan.com/blog/2020/08/Objective-Rust/ https://belkadan.com/blog/2020/08/Objective-Rust/
- saagarjha 4y agoSomeone needs to combine these two…