Lexicographic comparison of arrays (of chars)
Jacob Carlborg
doob at me.com
Wed Jan 22 10:19:38 UTC 2020
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
More information about the Digitalmars-d-learn
mailing list