dotnet / dotnet/csharplang

Champion "blittable"/"unmanaged" constraint (15.7)

Open
#187 56 comments 47 reactions 2 assignees Claimed by @gafter View on GitHub
Implemented Needs ECMA Spec Proposal Proposal champion
Dominant language
C#
Stars
12.7k
Forks
1.1k
Avg merge
11h 1m
Merged PRs (30d)
3

Description

The blittable feature will give language enforcement to the class of types known as "unmanaged types" in the C# language spec. This is defined in section 18.2 as a type which is not a reference type and doesn't contain reference type fields at any level of nesting.

Allows `where T : unmanaged`

- [x] Proposal added (https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.3/blittable.md)
- [x] Discussed in LDM
- [ ] Decision in LDM
- [ ] Finalized (done, rejected, inactive)
- [ ] Spec'ed

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.