Getting a class' name, but not fully qualified?
JR
zorael at gmail.com
Fri Mar 28 04:28:06 PDT 2014
On Thursday, 27 March 2014 at 17:41:14 UTC, Jeremy DeHaan wrote:
> typeof(this) gives its fully qualified name though. I was
> looking for a way to get just the name of the class alone.
I guess I'm confused about what 'fully qualified name' entails.
For a class Foo, is "Foo" not just the name of the class?
> assert(typeof(this).stringof == "Foo");
More information about the Digitalmars-d-learn
mailing list