csharplang icon indicating copy to clipboard operation
csharplang copied to clipboard

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

Open gafter opened this issue 7 years ago • 1 comments

From #1502

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

gafter avatar Aug 18 '18 00:08 gafter

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?

sweemer avatar Mar 27 '24 08:03 sweemer