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.
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/bc99930d1c92f997c849e5925f9f17455c7b2470 fix Issue 14435 - [D1] backport deprecated('msg')
Thanks!