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

Ali Çehreli via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 7 12:21:40 PDT 2016


On 09/03/2016 03:13 PM, Ethan Watson wrote:
 > On Saturday, 3 September 2016 at 21:54:24 UTC, Jacob Carlborg wrote:

 > allMembers not returning all members makes introspection
 > entirely useless when it comes to Binderoo.

Same problem with Weka's code base...

 > getMember itself, well, I'd honestly prefer if there was a way to get to
 > members without having to correlate with .tupleof as it will simplify
 > Binderoo code.

Again, same problem at Weka...

Protection attributes are for protecting programmers from implementation 
changes. If I reach for allMembers or getMember, it's an explicit way of 
saying "I don't care about the consequences."

Ali



More information about the Digitalmars-d mailing list