Skip to content

Improve message sending to superclasses #243

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

Merged
merged 3 commits into from
Aug 15, 2022
Merged

Improve message sending to superclasses #243

merged 3 commits into from
Aug 15, 2022

Conversation

madsmtm
Copy link
Owner

@madsmtm madsmtm commented Aug 15, 2022

Part of #30 in spirit.

Now msg_send![super(self), init] is possible, which is a nice improvement as it is easy to accidentally send a message to the wrong superclass!

@madsmtm madsmtm added enhancement New feature or request A-objc2 Affects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` crates labels Aug 15, 2022
@madsmtm madsmtm added this to the objc2 v0.3 milestone Aug 15, 2022
Uses ClassType to get the superclass instead.
@madsmtm madsmtm force-pushed the super-improvements branch from e835ac7 to 7c8cfcc Compare August 15, 2022 11:34
@madsmtm madsmtm merged commit a020f80 into master Aug 15, 2022
@madsmtm madsmtm deleted the super-improvements branch August 15, 2022 12:37
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.

1 participant