What is this strange alias syntax?

Andrej Mitrovic andrej.mitrovich at gmail.com
Mon May 23 06:55:20 PDT 2011


On 5/23/11, Timon Gehr <timon.gehr at gmx.ch> wrote:
> BTW:
>
> writeln(typeid(int function(int))); //int()*
>
> wtf?

Yeah, typeid generally seems to be bad for these things.
typeof.stringof to the rescue:

writeln((int function(int)).stringof);  // int function(int)


More information about the Digitalmars-d-learn mailing list