[D-runtime] TypeInfo_Invariant -> …_Immutable?

Iain Buclaw ibuclaw at ubuntu.com
Wed Oct 2 07:14:57 PDT 2013


On Oct 2, 2013 3:03 PM, "David Nadlinger" <code at klickverbot.at> wrote:
>
> Hi all,
>
> I'd like to change the name of TypeInfo_Invariant, the wrapper for
> adding a layer of 'immutable' to a type, to TypeInfo_Immutable, as it
> makes things clearer when working on the DMD/druntime internals –
> especially to newcomers, as invariant had its current meaning for ages
> now.
>
> Am I missing a way this could actually break client code (on the API
> level, the ABI obviously changes, but we do that all the time)?
> TypeInfo_Invariant is in object, but not documented.
>
> David
>

There's probably someone somewhere that uses TypeInfo_Invariant in their
code (eg: std.format maybe?)

I'd probably keep an alias for typical deprecation / remove procedures.

Regards
-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d-runtime/attachments/20131002/f4340a50/attachment.html>


More information about the D-runtime mailing list