Fully qualified class name at compile-time
Leonard Dahlmann
leo.dahlmann at gmail.com
Fri Apr 11 09:19:23 PDT 2008
BCS Wrote:
> Matthias Walter wrote:
> > Hello,
> >
> > I'd like to get the fully qualified name of a class for some CTFE:
> >
> > `MyClass.classinfo.name`
> >
> > returns the expected result, but is not evaluated at compiletime.
> >
> > I already thought about demangle(MyClass.mangleof) but this seems
> > to be bad coding style and I also didn't find a demangle-function
> > in Tango yet.
> >
> > best regards
> > Matthias Walter
>
> take a look at ".stringof", I /think/ it can be used for this.
".stringof" doesn't return the fully qualified name.
More information about the Digitalmars-d-learn
mailing list