On Thursday, 12 June 2014 at 14:48:41 UTC, Dicebot wrote:
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
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.
You don't need a symbol in the object file for that.
Yesterday I discovered that a global static variable in D is just
a global variable, with no special rule about symbol visibility
and such.
I've scrolled quickly through old discussions on the NG and read
the relevant DIP: http://wiki.dlang.org/DIP22
It seems to me that nobody thought about
Why private members can't have internal linkage?
On Thursday, 12 June 2014 at 09:48:30 UTC, Kagamin wrote:
Why private members can't have internal linkage?
There has been some discussion about a few corner cases, see
http://forum.dlang.org/thread/jlbsreudrapysiaet...@forum.dlang.org?page=2#post-irrbdrxordjawkryvrub:40forum.dlang.org
and
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
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.
--
/Jacob Carlborg
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