Internal linkage - equivalent of C++ global static and anonymous namespaces

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 12 07:48:39 PDT 2014


On Thursday, 12 June 2014 at 14:23:59 UTC, Jacob Carlborg wrote:
> On 12/06/14 11:48, Kagamin wrote:
>> Why private members can't have internal linkage?
>
> It's currently possible to access private symbols through 
> pointers.

And aliases with different qualifiers. And via return values. And 
with pretty much anything that does not require to type symbol 
identifier explicitly.


More information about the Digitalmars-d mailing list