Internal linkage - equivalent of C++ global static and anonymous namespaces
Dicebot via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jun 12 03:57:59 PDT 2014
On Thursday, 12 June 2014 at 09:48:30 UTC, Kagamin wrote:
> Why private members can't have internal linkage?
tl; dr: because private provides zero guarantees that symbol
won't be referenced in ABI context. It only controls direct
language level access.
It can possibly be done with analysis of all indirections but
effort is not worth the gain.
I think getting --gc-sections working out of the box is more
worthy goal ( unfortunately last PR from Martin had no practical
effect here :( )
More information about the Digitalmars-d
mailing list