Re: how to get fully qualified name of a template function (if possible at CT)

2012-08-27 Thread Ellery Newcomer
On 08/24/2012 11:16 PM, timotheecour wrote: how to get fully qualified name of a template function? In the code below I want to get "util.mod.mymethod!(double)" I tried everything (see below) to no avail, it just returns "mymethod"; The closest I get is demangle(mangledName!(fun)), which shouldn'

Re: how to get fully qualified name of a template function (if possible at CT)

2012-08-24 Thread timotheecour
related threads: http://www.digitalmars.com/d/archives/digitalmars/D/learn/3530.html from Don Clugston: I have implemented compile-time demangle metafunctions: static assert( prettynameof!(A)== "class main.A" ); static assert( qualifiednameof!(A) == "main.A" ); static assert( symbolnameof!(A

how to get fully qualified name of a template function (if possible at CT)

2012-08-24 Thread timotheecour
how to get fully qualified name of a template function? In the code below I want to get "util.mod.mymethod!(double)" I tried everything (see below) to no avail, it just returns "mymethod"; The closest I get is demangle(mangledName!(fun)), which shouldn't be hard to convert to what I want, but de