digitalmars.D.bugs - EnumType's stringof property returns basic type.
- t.m (16/16) Oct 05 2007 import std.stdio;
import std.stdio;
enum Foo { Hoge }
template Bar(T) { const char[] Bar = T.stringof; }
template Bar2(T) { const char[] Bar2 = (T[]).stringof; }
void main()
{
writeln(Foo.stringof);
writeln(Bar!(Foo));
writeln((Foo[]).stringof);
writeln(Bar2!(Foo));
}
======== result ========
int
int
Foo[]
Foo[]
Oct 05 2007








t.m <mailto:d-bugmail puremagic.com>