evolution

Janderson ask at me.com
Mon Oct 20 08:47:10 PDT 2008


KennyTM~ wrote:
> Jason House wrote:
>> Andrei Alexandrescu Wrote:
>>
>>> I plan to overhaul a number of modules in Phobos2, such as 
>>> std.algorithm, std.stdio, and std.random. The changes will render 
>>> existing code using those modules largely uncompilable. I wonder what 
>>> a good evolution scheme we should adopt. Walter suggested that I move 
>>> the old modules in etc/, so changing e.g. std.algorithm to 
>>> etc.algorithm should make legacy code work.
>>>
>>> Is this agreeable? Are there better possibilities?
>>>
>>>
>>> Thanks,
>>>
>>> Andrei
>>
>> D has a deprecated keyword... Could that be used?
>>
> 
> vote++ for deprecated;
> 

Perhaps depreciated code could be put under file.deprecated.d (or 
file.dep.d) and included by the new file, along with the deprecated 
word, just to keep things tidy.

-Joel



More information about the Digitalmars-d mailing list