The OpenD Programming Language

mangledName

Returns the mangled name of symbol or type sth.

mangledName is the same as builtin .mangleof property, but might be more convenient in generic code, e.g. as a template argument when invoking staticMap.

enum mangledName (
alias sth
)

Examples

import std.meta : AliasSeq;
alias TL = staticMap!(mangledName, int, const int, immutable int);
static assert(TL == AliasSeq!("i", "xi", "yi"));

Meta