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

Permit a fixed field to be declared inside a readonly struct. #1793

Open
gafter opened this issue Aug 18, 2018 · 1 comment
Open

Permit a fixed field to be declared inside a readonly struct. #1793

gafter opened this issue Aug 18, 2018 · 1 comment
Assignees
Milestone

Comments

@gafter
Copy link
Member

gafter commented Aug 18, 2018

From #1502

Permit a fixed field to be declared inside a readonly struct.

@gafter gafter self-assigned this Aug 18, 2018
@gafter gafter added this to the 9.0 candidate milestone Aug 26, 2019
@MadsTorgersen MadsTorgersen modified the milestones: 9.0 candidate, 10.0 candidate Apr 22, 2020
@gafter gafter assigned gafter and unassigned gafter Sep 3, 2020
@MadsTorgersen MadsTorgersen assigned jaredpar and unassigned gafter Oct 14, 2020
@333fred 333fred modified the milestones: 10.0 candidate, 10.0 Working Set Oct 14, 2020
@sweemer
Copy link

sweemer commented Mar 27, 2024

For me the primary motivation of allowing a fixed field inside of a readonly struct would be to make it more "ref readonly friendly" as described here.

Not sure if this is the right place to ask but is this the only way to make such structs ref readonly friendly, or might there be a better way?

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

No branches or pull requests

5 participants