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

[4.0] Implement 'unmanaged' constraint #771

Merged
merged 3 commits into from
Oct 10, 2018

Conversation

FreezyLemon
Copy link
Contributor

Purpose of this PR

This PR removes the runtime checks (BlittableValueType<T>.Check and the like) for types that can be used in interop and replaces them with the new and shiny unmanaged constraint for generic types. (more info)

Comments

This is blocked until the Mono compiler has support for this language feature (C# language version 7.3).

@FreezyLemon FreezyLemon changed the title Implement 'unmanaged' constraint [4.0] Implement 'unmanaged' constraint Jul 22, 2018
Implement its features using built-in alternatives
@FreezyLemon FreezyLemon force-pushed the 4.0-implement-unmanaged-constraint branch from e783c69 to 7de9ecb Compare September 2, 2018 17:22
@varon
Copy link
Member

varon commented Oct 10, 2018

Has mono caught up yet? This would be good to merge.

@Nihlus
Copy link
Contributor

Nihlus commented Oct 10, 2018

Mono's preview branch has - we'll need to adjust Travis to compensate (unless that was covered by another PR, can't recall).

@varon
Copy link
Member

varon commented Oct 10, 2018

It's been done and builds on CI. So it's working then. I'm happy to merge as it's for 4.0, so shouldn't break anything anyway.

@varon
Copy link
Member

varon commented Oct 10, 2018

In other words, feel free to go ahead and merge @Nihlus , as you've been more in touch with 4.0 than I have.

@Nihlus
Copy link
Contributor

Nihlus commented Oct 10, 2018

Travis needs to have its Mono version set to preview before we can safely merge, looks like it wasn't done in another PR.

@varon
Copy link
Member

varon commented Oct 10, 2018

This commit seems to have the change as part of the PR? bfb4d25

@Nihlus
Copy link
Contributor

Nihlus commented Oct 10, 2018

Oh, silly me. 🤦‍♂️ Yeah, all good.

@Nihlus Nihlus merged commit 0928437 into opentk:4.0 Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants