On Sat, 11 Feb 2012 11:59:36 +0100, Jonathan M Davis <[email protected]> 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
[email protected]
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?
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to