Usability of "allMembers and derivedMembers traits now only return visible symbols"

Basile B. via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 3 14:46:43 PDT 2016


On Saturday, 3 September 2016 at 20:54:19 UTC, Andrei 
Alexandrescu wrote:
> On 9/3/16 10:50 PM, Basile B. wrote:
>> On Saturday, 3 September 2016 at 20:40:57 UTC, Andrei 
>> Alexandrescu wrote:
>>> Martin, any chance we can undo this change to the language?
>>
>> The problem is deeper. If he undoes the change then what will 
>> happen
>> again is that the results of allMembers won't be usable by the 
>> other
>> traits, e.g getMember, because them are still limited by the 
>> protection
>> attributes.
>
> Where are the past discussions on this matter? -- Andrei

The change in 2.071.2-beta3 to allMembers is designed to fix

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

which happens because of a __traits(getMember,...) on the results 
of a __traits(allMembers,...).


More information about the Digitalmars-d mailing list