[Issue 3744] __traits getMember error in checking of second argument

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 4 20:00:16 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3744


Hoenir <mrmocool at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mrmocool at gmx.de


--- Comment #10 from Hoenir <mrmocool at gmx.de> 2010-02-04 20:00:15 PST ---
This is correlated with that bug:
http://d.puremagic.com/issues/show_bug.cgi?id=1386

Interestingly it still doesn't work even though allMembers returns a tuple
since r360:

4: foreach(m; __traits(allMembers, Check)){
5:    if (!__traits(isVirtualFunction, __traits(getMember, Check, m))){
6:        writefln("Var: s%, Type: %s", m, typeid(typeof(m)));
    }
}

yields:

main.d(5): Error: 'this' is only defined in non-static member functions, not
main
main.d(5): Error: this for a needs to be type Check not type int

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list