templating opEquals/opCmp (e.g. for DSL/expression templates)

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Feb 13 18:52:09 UTC 2019


On Wed, Feb 13, 2019 at 01:24:45AM +0000, Rubn via Digitalmars-d wrote:
[...]
>     int a;
>     auto c = (a) <= 0; // ok
>     auto d = (a) => 0; // not ok
[...]

Argh, I just realized that this example is invalid: the
greater-than-or-equal operator is >=, not =>.

There is no ambiguity.

mouth.open
     .insert(foot);


T

-- 
Tech-savvy: euphemism for nerdy.


More information about the Digitalmars-d mailing list