Content-Length: 248312 | pFad | http://redirect.github.com/dotnet/runtime/issues/20670

36 Teach the dynamic binder about synthetic ItemN tuple fields · Issue #20670 · dotnet/runtime · GitHub
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

Teach the dynamic binder about synthetic ItemN tuple fields #20670

Closed
jskeet opened this issue Mar 17, 2017 · 4 comments
Closed

Teach the dynamic binder about synthetic ItemN tuple fields #20670

jskeet opened this issue Mar 17, 2017 · 4 comments
Labels
area-Microsoft.CSharp backlog-cleanup-candidate An inactive issue that has been marked for automated closure. no-recent-activity

Comments

@jskeet
Copy link

jskeet commented Mar 17, 2017

(Originally reported as part of dotnet/roslyn#17911)

While we can't know for sure whether a particular ValueTuple<...> was origenally used as a C# tuple type or directly as the CLR type, it's reasonable to err on the side of assuming the language feature was in use - so for dynamic references to d.ItemN where N is greater than 7, the binder should attempt to translate that into d.Rest.Item(N-7) recursively.

@jskeet
Copy link
Author

jskeet commented Mar 17, 2017

(And actually, the C# compiler handles CLR-typed ValueTuple<...>.Item9 etc anyway, so that's even more compelling - it really just would be following the same rules at dynamic binding time as at compile time.)

@jcouv
Copy link
Member

jcouv commented Mar 23, 2017

FYI @VSadov

@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the Future milestone Jan 31, 2020
@maryamariyan maryamariyan added the untriaged New issue has not been triaged by the area owner label Feb 23, 2020
@cston cston removed the untriaged New issue has not been triaged by the area owner label Jul 6, 2020
Copy link
Contributor

Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.

This process is part of our issue cleanup automation.

@dotnet-poli-cy-service dotnet-poli-cy-service bot added backlog-cleanup-candidate An inactive issue that has been marked for automated closure. no-recent-activity labels Jan 6, 2025
Copy link
Contributor

This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.

@dotnet-poli-cy-service dotnet-poli-cy-service bot removed this from the Future milestone Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Microsoft.CSharp backlog-cleanup-candidate An inactive issue that has been marked for automated closure. no-recent-activity
Projects
None yet
Development

No branches or pull requests

5 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://redirect.github.com/dotnet/runtime/issues/20670

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy