introspection woes (2)

Lloyd Dupont ld-REMOVE at galador.net
Mon Jun 13 03:39:07 PDT 2011


trying to learn introspection, I have this simple test method:

===================
static void dumpelement(Object o)
{
    if (!o)
        return;

    auto ci = o.classinfo;
    foreach(mi ; ci.getMembers(null))
    {
        writefln("%s . %s", ci.name, mi.name());
    }
}
==================

However it fails to compile with the following error: (any ideas?)
=======
main.d(57): Error: function object.MemberInfo.name () is not callable using 
argument types () const
Building Debug\dtest.exe failed! 



More information about the Digitalmars-d-learn mailing list