www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - TypeInfo.toString on functions and delegates missing parameters

Using DMD 0.127, Windows 98SE.

The toString of a TypeInfo representing a function or delegate is 
missing the function parameters.  Also, for function it's returning a 
weird notation that isn't valid D syntax.

----------
import std.stdio;

void main() {
     int()* abc;

     writefln(typeid(int function()));
     writefln(typeid(int delegate()));
     writefln(typeid(void function(int)));
     writefln(typeid(char[] delegate(int)));
     writefln(typeid(char[char] delegate(real, uint)));
}
----------
int()*
int delegate()
void()*
char[] delegate()
char[char] delegate()
----------

Expected:

----------
int function()
int delegate()
void function(int)
char[] delegate(int)
char[char] delegate(real, uint)
----------

Stewart.

-- 
My e-mail is valid but not my primary mailbox.  Please keep replies on 
the 'group where everyone may benefit.
Jun 22 2005