DIP61: Add namespaces to D

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Sat Apr 26 14:45:01 PDT 2014


On Saturday, 26 April 2014 at 20:17:45 UTC, Walter Bright wrote:
> On 4/26/2014 1:06 PM, Jacob Carlborg wrote:
>> BTW, can't we just handle this automatically in a tool like 
>> DStep, with the help
>> of pragma(mangle).
>
> Just setting the name mangling is not enough. There's also the 
> issue of how does one refer to A.B.foo() rather than C.D.foo() ?

By putting first foo in A/B.d and second foo in C/D.d


More information about the Digitalmars-d mailing list