On 07/07/16 12:31, Namespace wrote: > Maybe with a template? > > ---- > void class_name(T)(T obj) if (is(T == class)) { > writeln(T.stringof); > } > ---- I want the string of the runtime type, the most derived type. -- /Jacob Carlborg