June 22, 2005 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.
|
Copyright © 1999-2021 by the D Language Foundation