www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Extending deprecated

reply Mafi <mafi example.org> writes:
Hi folks,
When porting some D1 code to D2, i had the idea to add an alternative 
syntax of deprecated:
  deprecated ( string )
where string is any valid string or char.
The sense of this would be 'deprecated by', so the compiler should then 
output "xy is deprecated by ..." instead of "xy is deprecated".

What do you think about that?
Mafi
Jul 15 2010
parent KennyTM~ <kennytm gmail.com> writes:
On Jul 16, 10 01:18, Mafi wrote:
 Hi folks,
 When porting some D1 code to D2, i had the idea to add an alternative
 syntax of deprecated:
 deprecated ( string )
 where string is any valid string or char.
 The sense of this would be 'deprecated by', so the compiler should then
 output "xy is deprecated by ..." instead of "xy is deprecated".

 What do you think about that?
 Mafi
Proposed already: http://article.gmane.org/gmane.comp.lang.d.dmd.devel/360
Jul 15 2010