News for hackers. Stuff that matters.
Re:Type erasure and reification by int_19h on Wednesday December 05, 2018 @05:06PM (#18613127)
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...

Re:Type erasure and reification by pjmlp on Wednesday December 05, 2018 @06:22PM (#18613785)
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.