
9 Sep
2009
9 Sep
'09
3:55 p.m.
Craig Henderson wrote:
In the absence of whitespace overloading, the only way to achieve this syntax is to use the preprocessor to define SELECT, FROM and WHERE to be something than can invoke a binary operator. This is less than ideal as the C++ preprocessor is global, so you can't restrict SELECT definition to be in the database namespace. It is impossible to support SQL aliases or tablename prefixes with this syntax, though. I think having select(a,b,c).from() is already concise & readable and not bound to macro limitation.
-- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35