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

[Swift language features] Implement Swift Protocol Witness Table retrieval #2957

Closed
Tracked by #2940
jkurdek opened this issue Jan 24, 2025 · 0 comments
Closed
Tracked by #2940
Assignees
Labels
area-SwiftBindings Swift bindings for .NET

Comments

@jkurdek
Copy link
Member

jkurdek commented Jan 24, 2025

To move forward with protocol constraints we need to add runtime mechanism for retrieval of protocol witness tables. This should be accompanied by a caching mechanism similar to the one we have for TypeMetadata

In order to obtain a Protocol Witness Table we must:

  1. Obtain symbol for Protocol Conformance Descriptor
  2. Read Protocol Conformance Descriptor from native library
  3. Call get_witnessTable function to correctly construct a PWT
@jkurdek jkurdek changed the title Add metadata for Protocol Witness Table [Swift language features] Implement Swift Protocol Witness Table retrieval Jan 24, 2025
@jkurdek jkurdek added the area-SwiftBindings Swift bindings for .NET label Jan 24, 2025
@jkurdek jkurdek self-assigned this Jan 24, 2025
@jkurdek jkurdek closed this as completed Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-SwiftBindings Swift bindings for .NET
Projects
None yet
Development

No branches or pull requests

1 participant