-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Champion: Unmanaged constructed types (16.3, Core 3) #1937
Comments
@agocke hey, any news on this? We are getting seriously blocked by this at Unity and this is becoming more urgent. How can we help to push for this? |
A few questions:
|
@xoofx This has been approved and @RikkiGibson is almost done with his implementation. Expected release: C# 8.0 😄 |
Cool! Is it accessible in a branch? |
@xoofx Just linked to the branch. |
yep, just saw that, 😅 thanks! |
@agocke, for reference, maybe it's better to link to the PR directly? I believe it's this one: dotnet/roslyn#31148 |
There's sometimes more than one PR for each feature branch. For instance: dotnet/roslyn#31597 also applies to this feature. When you look at the commits in the branch, you can see the pull requests there: https://github.com/dotnet/roslyn/commits/features/unmanaged-constructed-types So if you want to read the code reviews and such, you're probably best off going through there. |
@PathogenDavid, thanks, that helps :) |
Hmmm... Seems like the link (https://github.com/dotnet/roslyn/commits/features/unmanaged-constructed-types) is outdated? It gives me 404 error. |
It was merged into the Based on dotnet/roslyn#31374 (comment), I think development on feature is considered to have been completed. |
Sorry, I forgot to check the box for "implementation" :) Yes, the feature is now in Roslyn's master branch. It won't ship until dev16.1-preview1. |
public interface IEntity<TId>
where TId : unmanaged
{
TId Id { get; }
}
public interface ISkill : IEntity<(byte, byte)>
{
}
Will(can) As broader picture, I am writing serialization engine SergeyTeplyakov/ObjectLayoutInspector#15 which may support more cases, if generic structs not constrained by unmanaged at declaration side, but still closed on generics at usage side, could still be considered unmanaged. |
@dzmitry-lahoda are you using the |
This issue can be closed right? |
IIRC the issue is kept open until the spec and doc work is also complete. |
Oh, ok thanks, sorry for the noise 😅 |
The text was updated successfully, but these errors were encountered: