2 ms·
I’m unaware about the recent development, but MS has very module-like features in their version of C++ for decades already. For classic C++ they have #import d
by Const-me 9y ago
I’m unaware about the recent development, but MS has very module-like features in their version of C++ for decades already.
For classic C++ they have #import directive (1) Recently, for windows store/UWP platforms, C++ can consume windows runtime components (2)
Two things that allow these features to work are standardized ABI, and standardized type info format.
I don’t think high-level modules are possible in C++ before ABI and type info are both standardized in a compiler-neutral way. Better yet, in a language neutral way, like MS did that: you can implement a COM object in a script language as a WSC file, and consume it from C++ using #import.
[1] https://msdn.microsoft.com/en-us/library/8etzzkb6.aspx https://msdn.microsoft.com/en-us/library/8etzzkb6.aspx
[2] https://docs.microsoft.com/en-us/cpp/windows/how-to-activate-and-use-a-windows-runtime-component-using-wrl https://docs.microsoft.com/en-us/cpp/windows/how-to-activate...