templating opEquals/opCmp (e.g. for DSL/expression templates)
Jacob Carlborg
doob at me.com
Tue Feb 12 12:01:32 UTC 2019
On 2019-02-12 12:35, Nicholas Wilson wrote:
> The use case is e.g. building a DB query predicate where == still means
> equality not e.g. I/O, it just isn't evaluated directly. The fact is you
> can already use it for arithmetic to build e.g. linear algebra
> expression templates, and you can use == predicates but not != or any of
> the ordering comparisons is inconsistent arbitrary and annoying.
I like it. I would like to be able to do this with DB queries as well.
The alternative would be AST macros, but that is not likely to be
accepted either.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list