std.string import cleanup: how to fix regression?

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Thu Nov 13 11:47:43 PST 2014


On Thu, Nov 13, 2014 at 07:27:57PM +0000, Ilya Yaroshenko via Digitalmars-d wrote:
> alias can not be deprecated :-(
> >
> >What about:
> >
> >static import std.algorithm : startsWith, endsWith, cmp, count;
> >static import std.array : join, split;
> >
> >deprecated {
> >    alias startsWith = std.algorithm.startsWith;
> >    ...
> >}

Maybe we should file an enhancement request to make alias deprecatable.
I know recently someone asked for the 'module' declaration to be
deprecatable, and it was implemented. Maybe it's time to extend that to
aliases too. :-)


T

-- 
There's light at the end of the tunnel. It's the oncoming train.


More information about the Digitalmars-d mailing list