SCHEDULED for deprecation

Christopher Wright dhasenan at gmail.com
Sun May 10 06:58:27 PDT 2009


Tomasz Sowiński wrote:
> This phrase gave me an idea for a small feat:
> 
> deprecated(2009-4-19) void foo();
> 
> Compiling references to the deprecated declaration *before* the deprecation date would result in a *warning*.
> Compiling the deprecated declaration OR any reference to it *after* the date would result in an *error*.
> 
> Advantages for maintanance are obvious, plus, the feature seems easy to implement. What do you think?
> 
> Tomek

Put this in the control of the library creator. Have 
scheduled_for_deprecation and deprecated.



More information about the Digitalmars-d mailing list