Skip to content

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

Closed
madsmtm wants to merge 1 commit into
masterfrom
bool-conversion
Closed

WIP: Allow bool as the return type from msg_send!#126
madsmtm wants to merge 1 commit into
masterfrom
bool-conversion

Conversation

@madsmtm
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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