On 3/27/2014 3:16 PM, Jeremy DeHaan wrote:
As the title says, I was wondering if there was a way to get the classes
name at runtime, but not its fully qualified name. I want JUST the name
of the class only. Obviously I could get the fully qualified name from
the classinfo and then split it up to get the name of the class, but I
don't want to do all that at runtime.

Is this possible or am I out of luck?

I'm not aware of the class name being stored anywhere else in any other form, so even if you are using a Phobos function, or whatever, it's still going to have to deal with the FQN form before it hands you the name. But you don't have to split it. Just take a slice past the last '.'.

Reply via email to