www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Array Sort and Reverse Deprecation

reply Lucia Cojocaru <lucia.mcojocaru gmail.com> writes:
Hi,

I see array.sort and array.reverse are still in the deprecation 
phase. Is there any planned date for their removal?

Deprecation: use std.algorithm.sort instead of .sort property
Deprecation: use std.algorithm.reverse instead of .reverse 
property

Thanks,
Lucia
May 20 2017
parent reply Timon Gehr <timon.gehr gmx.ch> writes:
On 20.05.2017 12:52, Lucia Cojocaru wrote:
 Hi,

 I see array.sort and array.reverse are still in the deprecation phase.
 Is there any planned date for their removal?

 Deprecation: use std.algorithm.sort instead of .sort property
 Deprecation: use std.algorithm.reverse instead of .reverse property

 Thanks,
 Lucia
I don't think there is. There is this PR that turns the deprecation messages into compilation errors: https://github.com/dlang/dmd/pull/6554
May 20 2017
next sibling parent Timon Gehr <timon.gehr gmx.ch> writes:
On 20.05.2017 13:23, Timon Gehr wrote:
 On 20.05.2017 12:52, Lucia Cojocaru wrote:
 Hi,

 I see array.sort and array.reverse are still in the deprecation phase.
 Is there any planned date for their removal?

 Deprecation: use std.algorithm.sort instead of .sort property
 Deprecation: use std.algorithm.reverse instead of .reverse property

 Thanks,
 Lucia
I don't think there is.
To back that up, there are no dates specified in the relevant documentation: https://dlang.org/deprecate.html
 There is this PR that turns the deprecation messages into compilation
 errors: https://github.com/dlang/dmd/pull/6554
May 20 2017
prev sibling parent Seb <seb wilzba.ch> writes:
On Saturday, 20 May 2017 at 11:23:54 UTC, Timon Gehr wrote:
 There is this PR that turns the deprecation messages into 
 compilation errors: https://github.com/dlang/dmd/pull/6554
If you or anyone wants to help pushing the deprecation phase, please feel to adopt this PR, do the final polishing and get it merged _before_ the 2.075 release ;-)
May 20 2017