Is there any good reason why C++ namespaces are "closed" in D?

Atila Neves atila.neves at gmail.com
Mon Jul 30 13:47:02 UTC 2018


On Saturday, 28 July 2018 at 01:03:10 UTC, Walter Bright wrote:
> On 7/27/2018 4:15 PM, Laeeth Isharc wrote:
>> Can you think of a pragmatic solution to Atila's problem?
>
> One way is for the C++ => D translator to gather all the 
> members of a namespace before trying to emit them. Since D does 
> not impose an order on declarations (unlike C++) it is not 
> constrained to follow the same order.

As mentioned in the original post, the gathering is going to be 
incredibly annoying and I suspect I'll run into problems with 
macros.


More information about the Digitalmars-d mailing list