digitalmars.D.bugs - std.format internal bug - typeinfos
- heretic (14/14) Jul 09 2004 This code prints:
This code prints:
TypeInfoClass
[9] == l
while [9] should be == C. this kills the format function, since the name should
be TypeInfo_Class as it's TypeInfo_i for int, etc.
void main()
{
class Foo {
}
writefln(typeid(Foo).classinfo.name);
writefln("[9] == ", typeid(Foo).classinfo.name[9]);
}
regards,
Tom
Jul 09 2004








heretic <heretic_member pathlink.com>