[Issue 17065] [REG2.072] Unique does not work with private members

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Jan 7 15:10:07 PST 2017


https://issues.dlang.org/show_bug.cgi?id=17065

b2.temp at gmx.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com

--- Comment #3 from b2.temp at gmx.com ---
(In reply to dransic from comment #2)
> Private members are supposed to be accessible in the module where the type
> is declared (module-level encapsulation).
> [...]
> ---

There's a bigger underlying problem. Clearly something is broken by the change
but the change doesn't work because Proxy uses __traits() and __traits() has a
limitation related to the protection attributes. I don't know if you've
followed the NG discussions last months but there's been several topics about
this. A semantic change is even planned for the next 6 months (see the recent
announce about H1)

That being said I don't suggest to wait the semantic change to happen. I just
come because this __traits() thing has been a personal concern.

--


More information about the Digitalmars-d-bugs mailing list