Rich,
Modules are orthogonal to namespaces. Namespaces in C++ span translation units, and therefore module units.
Do you have concrete examples of the kind of name clashes you have in mind to illustrate the question?
You can use header files to expose third party header files. Conditional inclusion is valid (as ever) within any translation unit, including module units.
Letting macros from the outside into a module unit via import declaration is not the route to go. That sort of things should be pushed back to the build system level where it belongs.
As implementations are rolling module support, I expect to see more and more affordable tooling around how we expose interfaces. Like with any new technology, there is a learning period and we will all be sharing experience and knowledge – remember mid ‘90s with the STL? J
-- Gaby
--
You received this message because you are subscribed to the Google Groups "SG2 - Modules" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
modules+u...@isocpp.org.
To post to this group, send email to mod...@isocpp.org.
Visit this group at
http://groups.google.com/a/isocpp.org/group/modules/.
Rich,
Modules are orthogonal to namespaces. Namespaces in C++ span translation units, and therefore module units.
Do you have concrete examples of the kind of name clashes you have in mind to illustrate the question?
You can use header files to expose third party header files. Conditional inclusion is valid (as ever) within any translation unit, including module units.
Letting macros from the outside into a module unit via import declaration is not the route to go. That sort of things should be pushed back to the build system level where it belongs.
As implementations are rolling module support, I expect to see more and more affordable tooling around how we expose interfaces. Like with any new technology, there is a learning period and we will all be sharing experience and knowledge – remember mid ‘90s with the STL? J