[Tooling] [isocpp-modules] Dependency format with module details implementation

Boris Kolpackov boris at codesynthesis.com
Fri Apr 12 17:40:07 CEST 2019


Ben Boeckel via Modules <modules at lists.isocpp.org> writes:

> This is fine because `import <hello/core.hpp>;` is semantically the
> same as `#include <hello/core.hpp>` *for the purposes of preprocessing*.

I don't think this is correct. There is at least the difference
in macro isolation. Consider:

#define NDEBUG
#include <hello/core.hpp> // Affected by NDEBUG.

And:

#define NDEBUG
import <hello/core.hpp>; // Isolated from NDEBUG.


More information about the Tooling mailing list