Skip to content

Conversation

@jevansaks
Copy link
Member

Per discussion in #1066 and microsoft/win32metadata#1792, a new [Retained] attribute was added in win32 metadata to help indicate that a parameter will outlive the method call.

The best way we have to communicate that is to always type the parameter as a pointer so that at least the caller has to think about the lifetime of the pointer existing beyond the life of the method call.

@jevansaks jevansaks merged commit 8a18f07 into main Nov 3, 2025
7 checks passed
@jevansaks jevansaks deleted the user/jevansaks/retainedattribute branch November 3, 2025 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants