Ordering comparisons
Dominikus Dittes Scherkl via Digitalmars-d
digitalmars-d at puremagic.com
Tue Mar 7 05:20:57 PST 2017
On Tuesday, 7 March 2017 at 02:51:37 UTC, Jonathan M Davis wrote:
> If we can, we should probably make structs that have opCmp use
> opCmp like they should, and those that don't continue to use
> memcmp for the moment but get a deprecation message. Then after
> whatever amount of time we think is appropriate, we disable the
> comparisons. So, we don't break anything immediately, but
> ultimately end up with the correct situation of comparisons not
> working unless opCmp being defined.
+1
This is the only sensible approach.
More information about the Digitalmars-d
mailing list