C++ Logo

std-proposals

Advanced search

Re: [std-proposals] [DRAFT PAPER] Allowing the establishment of namespace scopes in an export-declaration

From: Jason McKesson <jmckesson_at_[hidden]>
Date: Sun, 11 Sep 2022 21:51:24 -0400
On Sun, Sep 11, 2022 at 9:25 PM Zopolis0 via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> The compiler has no need to know about what gets defined in the primary module interface unit when compiling an interface partition, as the interface partitions can compile fine without knowing what namespace they get exported under.

An interface partition can be imported by an implementation unit.
Which means the implementation unit can reference names exported by
the interface partition. So... it needs to be able to *name* those
things.

And that requires knowing what namespace they're in. So how can a
compiler generate code without knowing what namespace things are in?

Received on 2022-09-12 01:52:15