Like getClass()

bearophile bearophileHUGS at lycos.com
Sat Sep 27 11:07:29 PDT 2008


torhu:
> writefln((cast(Object)thing).classinfo.name);

It works, thank you very much. Now I'll try to use it for the original purposes......
I'll have to work some more. I'll show here the results if I finish.


> This does look ugly, though.

Well, better ugly than not having any way to solve the problem :-)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list