[D-runtime] TypeInfo_Invariant -> …_Immutable?

David Nadlinger code at klickverbot.at
Wed Oct 2 08:46:45 PDT 2013


On Wed, Oct 2, 2013 at 4:14 PM, Iain Buclaw <ibuclaw at ubuntu.com> wrote:
> There's probably someone somewhere that uses TypeInfo_Invariant in their
> code (eg: std.format maybe?)

Oh dear, TypeInfo_Invariant is indeed used once in the the deprecated,
undocumented part of std.format. And it directly checks for the
occurrence of "Invariant" in the mangled name, something that would
inevitably break if we renamed the class.

Still, I feel that oddities like this decrease the "hackability" of
the D tool chain – maybe we should just stick a big red notice in the
code comments?

David


More information about the D-runtime mailing list