|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.learn - Fully qualified class name at compile-time
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 Apr 11 2008
"Matthias Walter" <walter mail.math.uni-magdeburg.de> wrote in message news:ftn3gh$urd$1 digitalmars.com...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. Apr 11 2008
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 Apr 11 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 Apr 11 2008
Leonard Dahlmann wrote:BCS Wrote:take a look at ".stringof", I /think/ it can be used for this. Apr 11 2008
|