Skip to content

Conversation

@madsmtm
Copy link
Owner

@madsmtm madsmtm commented Oct 3, 2023

We don't want to allow e.g. this: &NSString in declare_class!, since that'd not be valid with self: &NSString (and is very likely unsound and undesired anyhow).

Also refactor declare class internals in preparation for #521.

@madsmtm madsmtm added bug Something isn't working A-objc2 Affects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` crates labels Oct 3, 2023
@madsmtm madsmtm added this to the Usable icrate milestone Oct 3, 2023
@madsmtm madsmtm force-pushed the restrict-this-declare-class branch from 8743e4f to 33e7f1a Compare October 3, 2023 15:01
@madsmtm madsmtm changed the title Restrict this parameters to Self-like types Restrict this parameters to Self-like types in declare_class! Oct 3, 2023
Also refactor declare class internals slightly
@madsmtm madsmtm force-pushed the restrict-this-declare-class branch from 33e7f1a to 8c6b293 Compare October 3, 2023 15:34
@madsmtm madsmtm merged commit 2ad20c3 into master Oct 3, 2023
@madsmtm madsmtm deleted the restrict-this-declare-class branch October 3, 2023 18:08
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 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant