DMD2 supports this syntax:
deprecated("This is printed as deprecation message")
void foo();
This is one of D2 features that would help indirectly in handling smooth migration if ported to D1 and should be relatively simple to add according to my knowledge of DMD internals.
Comment #1 by github-bugzilla — 2015-04-14T01:10:21Z