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

C# 7.3: ref local reassignment #3961

Closed
BillWagner opened this issue Dec 15, 2017 · 2 comments
Closed

C# 7.3: ref local reassignment #3961

BillWagner opened this issue Dec 15, 2017 · 2 comments

Comments

@BillWagner
Copy link
Member

This feature enables ref local variables to be declared separate from their initialization, and to be re-assigned once declared.

The spec for the feature is here: dotnet/csharplang#933

This is most likely updates to reference semantics with value types, and the reference pages for local variable declaration. It may require a new topic, but that's not clear to me yet.

@mairaw mairaw added this to the Backlog milestone Dec 18, 2017
@mairaw mairaw added the P1 label Feb 12, 2018
@BillWagner
Copy link
Member Author

Updated proposal is here

@BillWagner BillWagner modified the milestones: Backlog, Sprint 133 (3/17/18 - 4/06/18) Mar 26, 2018
@BillWagner BillWagner self-assigned this Mar 29, 2018
@BillWagner
Copy link
Member Author

The article affected by this language feature is the ref locals and returns article in the programming guide. It doesn't explicitly say that ref local reassignment is not allowed, it doesn't explain it either.

I also reviewed the ref keyword article section on ref locals and the methods topic in the programming guide. Neither need any updates.

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

2 participants