On 03/03/2017 8:32 AM, Andrei Alexandrescu wrote:
Worth a look: https://github.com/dlang/druntime/pull/1781. This moves
comparison code away from tedious runtime-introspected routines to nice
templates. -- Andrei

If we end up full on templated TypeInfo that would be lovely.

TypeInfo_Class clasz = TypeInfo_ClassT!Foo;

class TypeInfo_ClassT(T) if(is(T == class)) {
        version(FullReflection) {
                string[] methodNames() { ... }
        }
}

But just a thought.

Reply via email to