SCHEDULED for deprecation

Tomasz Tomasz
Thu May 7 09:57:36 PDT 2009


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



More information about the Digitalmars-d mailing list