Re:Type erasure and reification
by pjmlp on Wednesday December 05, 2018 @04:00PM
(#18612481)
UWP is just improved COM, so generics cannot be easily done as general purpose language ABI.
[ Parent
| on HN ]
WinRT does generics by synthesizing interface specializations (so e.g. their GUID is effectively a hash of the original interface name + type parameters). Since the mapping is exposed as a public function, generics are a part of the ABI, and are mapped accordingly in language projections.
https://docs.microsoft.com/en-us/windows/desktop/api/roparam...
Yep, I should have been more explicit, my point by "cannot be easily done" was the amount of stuff going behind the scenes versus what happens in language runtimes.
Thanks for clarifying it.