August 07, 2018 Re: Is there any good reason why C++ namespaces are "closed" in D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On 8/7/2018 1:13 AM, Walter Bright wrote:
> On 8/7/2018 12:08 AM, Nicholas Wilson wrote:
>>> I don't see what making an alias to a namespace has to do with it.
>> That was your suggested workaround, was it not?
> No, it was not. It was about making an alias to the members of the namespace.
BTW, the mass confusion and misunderstandings in this thread is why Manu should write a DIP.
|
August 07, 2018 Re: Is there any good reason why C++ namespaces are "closed" in D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Tuesday, 7 August 2018 at 02:25:32 UTC, Walter Bright wrote:
> Let's see if we can find some common ground.
>
> The boilerplate I suggested seems to enable DPP to generate working code that behaves "as if" the namespace scope is not there, even for nested namespaces.
>
> Is this correct?
Yes, I've already implemented it.
I'm not sure what the impact will be with nested namespaces in real headers. I guess we'll have to see.
|
August 07, 2018 Re: Is there any good reason why C++ namespaces are "closed" in D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Atila Neves | On 8/7/2018 3:49 AM, Atila Neves wrote: > Yes, I've already implemented it. Wonderful! > I'm not sure what the impact will be with nested namespaces in real headers. I guess we'll have to see. Yes. |
Copyright © 1999-2021 by the D Language Foundation