[phobos] std.string deprecations

Martin Nowak dawg at dawgfoto.de
Sat Feb 11 03:10:47 PST 2012


On Sat, 11 Feb 2012 11:59:36 +0100, Jonathan M Davis <jmdavisProg at gmx.com>  
wrote:

> On Saturday, February 11, 2012 11:14:29 Martin Nowak wrote:
>> deprecated alias newSymbol oldSymbol;
>>
>> If we'd settle on using deprecated aliases we could avoid duplicated
>> definitions.
>> Even better we could teach the compiler to propose replacements for
>> deprecated aliases.
>
> I made newline an alias, but most of them can't be. std.string uses  
> static
> arrays for all of its string constants, whereas std.ascii uses dynamic  
> arrays.
> And while most of the other deprecations in std.string involve function
> renaming, they're templated functions, so alias doesn't work.
>
>> Besides std.string.whitespace has no deprecation at all.
>
> Fixed.
>
> - Jonathan M Davis
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos

So adding special deprecation messages for aliases wouldn't get us very far
because the cases of a simple move are rare?


More information about the phobos mailing list