[phobos] std.string deprecations
Jonathan M Davis
jmdavisProg at gmx.com
Sat Feb 11 02:59:36 PST 2012
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
More information about the phobos
mailing list