opCmp with template type not working.

rikki cattermole rikki at cattermole.co.nz
Tue Nov 3 03:01:27 UTC 2020


Two questions:

1) Why is opCmp returning a bool?
2) Why does opCmp have a template parameter called `op`?

https://dlang.org/spec/operatoroverloading.html#compare


More information about the Digitalmars-d mailing list