TypeInfo or TypeMisInfo
bearophile
bearophileHUGS at lycos.com
Wed Oct 19 02:33:25 PDT 2011
Gor Gyolchanyan:
> My question is: Why isn't TypeInfo immutable? It doesn't make any
> sense to have a mutable type info.
I guess the answer is just that TypeInfo was invented before the D2 const system was in place. In Druntime/Phobos there are many things that aren't pure/const/nothrow despite they need to be. I suggest to file an enhancement request, with all explanations. And if you are good enough, even to create a GitHub pull request about it.
Bye,
bearophile
More information about the Digitalmars-d
mailing list