Operator overloading
aarti_pl
aarti at interia.pl
Wed Dec 24 14:58:53 PST 2008
Sergey Gromov pisze:
>> downs way:
>> auto query1 = select(a) /where/ "id" /eq/ 5;
>> auto query2 = select(a) /where/ "name" /like/ "%bob%";
>
> What a nice trick!
>
> I don't like operator abuse, but sometimes it's a lesser evil. And it's
> definitely the case with SQL queries.
I agree. In D raw operator overloading should be probably as
discouraging as cast operator :-)
e.g.
opRawEqual()
opRawNotEquals()
etc.
BR
Marcin Kuszczak
(aarti_pl)
More information about the Digitalmars-d
mailing list