The spec page for `opCmp` (https://dlang.org/spec/operatoroverloading.html#compare) doesn't tell what values should be returned from it
It shows a table with rewrites such as: a < b | a.opCmp(b) < 0 Doesn't that tell you that it should be a negative number when a < b?
Apparently, it was obscure enough for me to not figure this out. Maybe, a rephrase is needed, or an added table of what the function should return.
I agree with Grim. Existing lowering docs is fine but an example even more fine
@RazvanN7 created dlang/dlang.org pull request #3474 "Fix Issue 23553 - opCmp spec is incomplete" fixing this issue: - Fix Issue 23553 - opCmp spec is incomplete https://github.com/dlang/dlang.org/pull/3474
dlang/dlang.org pull request #3474 "Fix Issue 23553 - opCmp spec is incomplete" was merged into master: - 48263a38d0b9491c07361c9b7e6b22625d1ecb14 by RazvanN7: Fix Issue 23553 - opCmp spec is incomplete https://github.com/dlang/dlang.org/pull/3474