Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add scoped modifier to in parameters of ref struct #2021

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 1 commit into from
Oct 18, 2024
Merged

Conversation

AArnott
Copy link
Collaborator

@AArnott AArnott commented Oct 18, 2024

This is critical for v3 where we're compiling using C# 12, which holds out callers at a higher standard to not pass in ReadOnlySequence<byte> that might not live as long as the ref struct because of using the in parameter modifier.

This is critical for v3 where we're compiling using C# 12, which holds out callers at a higher standard to not pass in `ReadOnlySequence<byte>` that might not live as long as the `ref struct` because of using the `in` parameter modifier.
@AArnott AArnott added this to the v3.0 milestone Oct 18, 2024
@AArnott AArnott enabled auto-merge October 18, 2024 22:30
@AArnott AArnott merged commit f5e104e into develop Oct 18, 2024
5 checks passed
@AArnott AArnott deleted the fix_scope branch October 18, 2024 22:44
@neuecc
Copy link
Member

neuecc commented Oct 21, 2024

Note:
In this case, there should be no problem, but if the code generated by the source generator has scoped, there is a possibility of a problem in Unity.
This is because the version of C# in Unity is 9, and scoped is not supported.

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.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.