Discussion Thread: DIP 1042--ProtoObject--Community Review Round 1

Elronnd elronnd at elronnd.net
Fri Jan 14 02:15:59 UTC 2022


On Friday, 14 January 2022 at 01:59:19 UTC, Dom DiSc wrote:
> you will learn later that your class is not as totally ordered 
> as you thought at first glance.

enum PartialOrdering { Less, Equal, Greater, Indeterminate }
enum TotalOrdering { Less, Equal, Greater }
interface PartiallyOrdered { PartialOrdering cmp(PartiallyOrdered 
other); }
interface TotallyOrdered { TotalOrdering cmp(TotallyOrdered 
other); }


More information about the Digitalmars-d mailing list