Short list with things to finish for D2

Phil Deets pjdeets2 at gmail.com
Sat Nov 21 20:07:07 PST 2009


On Sat, 21 Nov 2009 13:21:10 -0500, aarti_pl <aarti at interia.pl> wrote:
> [snip]
>
> Problem with current approach is that I have to define SQL in D/Java in  
> following way:
>
> auto statement = Select(visitcars.name).Where(And(More(visitcards.id,  
> 100), Like(visitcards.surname, "A*")));
>
> Please look at code in Where(). It's so awfuuuuulllllll!
>
> It would be so much better to write:
> auto statement = Select(visitcars.name).Where((visitcards.id `>` 100)  
> `AND` (visitcards.surname `Like` "A*"));
>
> I used here syntax which you have proposed with delimiter ``. I think it  
> is good enough solution for such purpose.
>
> [snip]

Would something like expression trees  
(http://msdn.microsoft.com/en-us/library/bb397951.aspx) suit your needs?



More information about the Digitalmars-d mailing list