Skip to content

Refactor objc2-foundation macros#92

Merged
madsmtm merged 5 commits into
masterfrom
refactor-foundation-macros
Dec 20, 2021
Merged

Refactor objc2-foundation macros#92
madsmtm merged 5 commits into
masterfrom
refactor-foundation-macros

Conversation

@madsmtm
Copy link
Copy Markdown
Owner

@madsmtm madsmtm commented Dec 20, 2021

Make the object_struct macro support generics

@madsmtm madsmtm added the enhancement New feature or request label Dec 20, 2021
@madsmtm madsmtm force-pushed the refactor-foundation-macros branch 5 times, most recently from 23dd507 to 60b94e3 Compare December 20, 2021 20:17
These are probably not necessary, since we control how the objects are created.

Though it does prevent users from accidentally returning e.g. `&NSValue<&u8>` (when they intended `&NSValue<u8>`) in a message send, it might also be overly restrictive.
@madsmtm madsmtm force-pushed the refactor-foundation-macros branch from 60b94e3 to 98e155b Compare December 20, 2021 20:22
@madsmtm madsmtm marked this pull request as ready for review December 20, 2021 20:26
@madsmtm madsmtm merged commit b47508f into master Dec 20, 2021
@madsmtm madsmtm deleted the refactor-foundation-macros branch December 20, 2021 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant