Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Allow bool as the return type from msg_send! #126

Closed
wants to merge 1 commit into from

Conversation

madsmtm
Copy link
Owner

@madsmtm madsmtm commented Jan 19, 2022

A proof of concept for #125.

There's an issue with objc2-encode being its own crate, which means we can't write the impl<T: Encode> ReturnType for T in any other crate, but that's solvable (by merging objc2 and objc2-encode, though not very nice).

Instead of the impl<T: Encode> ReturnType for T impl, what we really want is specialization :/

@madsmtm madsmtm added the enhancement New feature or request label Jan 19, 2022
@ArturKovacs
Copy link

This is awesome!

@madsmtm madsmtm mentioned this pull request Apr 3, 2022
12 tasks
@madsmtm madsmtm added the A-objc2 Affects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` crates label Apr 4, 2022
@madsmtm madsmtm mentioned this pull request May 23, 2022
@madsmtm madsmtm closed this in #147 May 24, 2022
@madsmtm madsmtm deleted the bool-conversion branch June 11, 2022 19:13
@madsmtm madsmtm mentioned this pull request Aug 13, 2022
5 tasks
@madsmtm
Copy link
Owner Author

madsmtm commented Aug 14, 2022

FYI: Picked this up again in #239, extended to parameter types as well as return types

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-objc2 Affects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` crates enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants