-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Champion: numeric IntPtr #6065
Copy link
Copy link
Open
Labels
Implemented Needs ECMA SpecThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationProposalProposal champion
Milestone
Metadata
Metadata
Assignees
Labels
Implemented Needs ECMA SpecThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationProposalProposal champion
Type
Fields
Give feedbackNo fields configured for issues without a type.
numeric IntPtr
Summary
System.IntPtrandSystem.UIntPtrbecome numeric types, aliased bynintandnuint, and gain the built-in status ofnintandnuint.Motivation
As part of numerics work for .NET 7,
System.IntPtrandSystem.UIntPtrare becoming proper numeric types.So the distinction between native integer types and their underlying types becomes unnecessary.
Detailed design
https://github.com/dotnet/csharplang/blob/main/proposals/csharp-11.0/numeric-intptr.md
Drawbacks
Alternatives
Unresolved questions
Design meetings