C++ Logo

sg15

Advanced search

Re: "logical name" of importable headers

From: Daniel Ruoso <daniel_at_[hidden]>
Date: Wed, 8 Jun 2022 14:53:53 -0400
Em qua., 8 de jun. de 2022 às 11:24, Steve Downey via SG15
<sg15_at_[hidden]> escreveu:
> However, at least on Unix-ey environments, the ability to deliberately
> shadow headers is very important.

Yes. The thing where modules make it different is that the build
system needs to know about the header units and make rules for
building them.

The risk that comes from that is that the build system resolves it one
way, and the compiler ends up resolving another.

To mitigate that risk, what I'm advocating is that the decision of
which header "wins" in the shadowing would be done by the build
system, not by the compiler. The compiler would get a fully resolved
list already.

daniel

Received on 2022-06-08 18:54:05