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

Add test for IVector being IIterable #158

Conversation

tristanlabelle
Copy link
Contributor

@tristanlabelle tristanlabelle commented Apr 15, 2024

Adds a skipped test that would pass if #159 were implemented.

I believe this doesn't work and would be nontrivial to implement. When a Swift-implemented IVector<T> is passed to WinRT, we create a COM-exposable wrapper specific to top-level interface, IVector<T>, but that wrapper does not know how to provide additional required interfaces, IIterable<T> in this case. More generally, the wrapper would have no way to know that the Swift object implements other interfaces (for example IClosable). IVector<T>'s queryInterface cannot respond to IIterable<T> because the GUID and wrapper types are different for each T.

@tristanlabelle tristanlabelle marked this pull request as ready for review April 15, 2024 15:18
@tristanlabelle tristanlabelle requested a review from a team as a code owner April 15, 2024 15:18
Copy link
Collaborator

@stevenbrix stevenbrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't that difficult to implement, we have it in arc, could just bring that implementation here while you're at it?

Copy link
Contributor

@sherryshao sherryshao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@tristanlabelle tristanlabelle merged commit 6bfd945 into thebrowsercompany:main Apr 15, 2024
1 check passed
kendalharland pushed a commit that referenced this pull request Jun 11, 2024
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.

3 participants