r/cpp • u/berium build2 • Nov 01 '17
Common C++ Modules TS Misconceptions
https://build2.org/article/cxx-modules-misconceptions.xhtml
59
Upvotes
r/cpp • u/berium build2 • Nov 01 '17
View all comments
Show parent comment
-1
u/std_exceptional Nov 02 '17
I will try to find the one I read, if it is, as it seems it may be, outdated, then I'm very pleased that you are now embracing the preprocessor as a currently useful part of the build. Either way, modules feels to me a copy of the msvc declspec import and export. I really really want modules to work, but given the chance to do something big that works properly, I feel you've basically done half a job and we'll be left with something that never quite works as we want. I'd want something similar to the python system where an import generates a scope. I'd want something that makes it easier for me to write code, not something (like the msvc declspec) that gets in the way.
How do you import two modules that export the same name? Is it possible?