Function Version.opCmp

Compares two dsdl2.Versions from chronology

int opCmp (
  Version other
) @safe const;

Example

assert(dsdl2.Version(2, 0, 0) == dsdl2.Version(2, 0, 0));
assert(dsdl2.Version(2, 0, 1) > dsdl2.Version(2, 0, 0));
assert(dsdl2.Version(2, 0, 1) < dsdl2.Version(2, 0, 2));
assert(dsdl2.Version(2, 0, 2) >= dsdl2.Version(2, 0, 1));
assert(dsdl2.Version(2, 0, 2) <= dsdl2.Version(2, 0, 2));