On Wednesday, 22 January 2020 at 08:44:15 UTC, Per Nordlöw wrote:
I just found import core.internal.array.comparison : __cmp;I presume that is a better alternative if Phobos' independence is desired.
That looks like it's for internal use. There is a `compare` method in the `TypeInfo` of each type.
https://github.com/dlang/druntime/blob/2fa694319da397d72ab09cb336f3d588107278c1/src/object.d#L541 -- /Jacob Carlborg