Skip to content
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

Fix inconsistency in p/invoke arguments introduced when switching some to be blittable #61071

Merged
merged 1 commit into from
Nov 10, 2021

Conversation

elinor-fung
Copy link
Member

Copy link
Member

@jkoritzinsky jkoritzinsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @stephentoub wanted us to go in the other (non-blittable byrefs) direction, not making everything pointers.

Copy link
Member

@AaronRobinsonMSFT AaronRobinsonMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@elinor-fung
Copy link
Member Author

I had interpreted #59658 (comment) (and therefore #59658 (comment)) as making them all pointers, since in this case, unlike some of the bool<->int ones we had, it doesn't make them much less usable.

@jkoritzinsky
Copy link
Member

I remember during our internal discussions that there was a dislike about losing the conceptual ideas that the out annotation brings (that the parameter doesn't need to be initialized before being passed to native code) that we may have forgotten to write down.

@elinor-fung
Copy link
Member Author

Ah, I do recall discussion about out - for whatever reason, that I lumped that with the bool in my mind. Thoughts, @stephentoub?

Copy link
Contributor

@deeprobin deeprobin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@elinor-fung
Copy link
Member Author

elinor-fung commented Nov 9, 2021

Went back and looked at some notes and what they were originally - switched back to out/ref.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DllImportGenerator] Fix inconsistencies in signature of updated p/invokes
4 participants