extern(C++, ns)
Carl Sturtivant via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jan 7 09:02:12 PST 2016
On Thursday, 7 January 2016 at 14:03:25 UTC, Marc Schütz wrote:
> On Wednesday, 6 January 2016 at 17:55:01 UTC, Walter Bright
> wrote:
>> Found and fixed another fwd ref problem with circular imports:
>>
>> https://github.com/D-Programming-Language/dmd/pull/5333
>>
>> This one had nothing to do with C++ namespaces; it showed up
>> for structs and classes, too. This implies that the current
>> design is sound, and a redesign is not necessarily desirable.
>
> By reading Manu's post, I was under the impression that it was
> actually impossible to use the C++ symbol _without_ the full
> namespace path, like with static imports. I should have checked
> this, because it turns out this isn't true at all. I agree then
> that the current design is mostly ok, especially with your bug
> fixes.
I should have noticed this too; so in fact the current design can
be used ignoring the scope modeling the C++ namespace. If the
details of using such an external name in that fashion are
identical to any other name at module scope in every context,
then I therefore concede that the design is OK, because it may be
treated as the alternative suggested in various ways in this
thread by simply ignoring the new scope by not using its name.
More information about the Digitalmars-d
mailing list