D-Programming-Language/dmd — pull request #909 by llucax (2012-04-25 11:57:31+00:00)
Title: Deprecation (dmd-1.x)

The deprecation() function works similar to the error() or warning()
functions but only prints messages if global.params.useDeprecated is
false. If it is, it uses the error() function to actually print the
messages and halt the program.

This patch also tries to make the messages consistent with the
behaviour. Some messages said that some feature was deprecated when it
has been completely removed in reality and should be plain errors.