Operator overloading
Christopher Wright
dhasenan at gmail.com
Tue Dec 23 16:14:16 PST 2008
Denis Koroskin wrote:
> Slightly off-topic.
>
> How would you implement, say, LIKE condition? Similar to the following, perhaps:
> Query query = Select(a).Where(id.Like("%substring%"));
>
> You could implement "==" the same way:
> Query query = Select(a).Where(id.EqualsTo(5));
downs way:
auto query1 = select(a) /where/ "id" /eq/ 5;
auto query2 = select(a) /where/ "name" /like/ "%bob%";
More information about the Digitalmars-d
mailing list