Inline Operator from Function.

Neia Neutuladh neia at ikeran.org
Fri Jan 25 03:56:45 UTC 2019


On Fri, 25 Jan 2019 03:52:23 +0000, Neia Neutuladh wrote:
> alias min = Operator!((a, b) => a < b ? a : b);

Er, that should obviously be:

enum min = Operator!(...).init;

Or use a static function for the operator overload. It's a land of 
lawlessness here, do whatever you like.


More information about the Digitalmars-d mailing list