Open tristanlabelle opened 11 months ago
It turns out supporting a conversion from Swift.Array<Element>
to IVector<Element>
in the support module might not be feasible. Trying to summarize:
IVector<T>
virtual tables rely on T-specific code generation because the ABI for things like the IndexOf(T)
function pointer is incompatible between a struct and a reference type, for example. C++ can generalize this because of its templates, but Swift cannot.Maybe this is implementable with a class ArrayVector<IVectorProjection, IIterableProjection>: WinRTExport<IInspectableProjection>
Started in https://github.com/tristanlabelle/swift-winrt/pull/99