On Thursday, 7 July 2016 at 09:59:23 UTC, Jacob Carlborg wrote:
Is it possible to get the name of a C++ class, "extern(C++) class Foo {}", at runtime just as it's possible to do the same for a D class, like "object.classinfo.name"?

Maybe with a template?

----
void class_name(T)(T obj) if (is(T == class)) {
        writeln(T.stringof);    
}
----

Reply via email to