Making TypeInfo.next() return a const(TypeInfo) was a bad idea
Benjamin Thaut
code at benjamin-thaut.de
Sun Oct 14 03:19:17 PDT 2012
Because you are now no longer able to do stuff like this:
void log(...)
{
auto t = _arguments[0];
while(some condition)
{
t = t.next();
}
}
To be actually able to use TypeInfo.next you will now need the ConstRef
(hack) from phobos. Afaik there is no such thing in druntime which makes
working with TypeInfo.next within druntime a real pita.
Any suggestions?
Kind Regards
Benjamin Thaut
More information about the Digitalmars-d
mailing list