Phobos - breaking existing code

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Sun Nov 30 18:01:34 PST 2014


On Sun, Nov 30, 2014 at 03:03:37PM -0800, Walter Bright via Digitalmars-d wrote:
[...]
> Keeping around a deprecated alias translating the old symbol to the
> new one is a good approach. For a more detailed message, instead of
> the @disabled enhancement, a simpler way is:
> 
>   void fnmatch()(...) {
>     static assert(0, "use globMatch instead of fnmatch");
>   }
[...]

That's a good idea.

Keep in mind, though, that in this particular case, std.path was
essentially replaced wholesale, so does that mean that every time we
replaced a module, we have to keep the entire old set of symbols around
basically forever?


T

-- 
It said to install Windows 2000 or better, so I installed Linux instead.


More information about the Digitalmars-d mailing list