Abstract Database Interface
Jacob Carlborg
doob at me.com
Tue Oct 30 07:41:42 PDT 2012
On 2012-10-30 13:04, Kapps wrote:
> There was a pull request for __traits(codeof, func) that would return
> the code for a symbol including lambda methods. It would probably be
> easier to have something like that for getting the AST and then using
> that to generate SQL queires (this is how C# / LINQ does it) than using
> sketchy hacks that go against natural language feel. Though it wouldn't
> be particularly easy to get that in to the compiler apparently due to
> AST rewriting issues.
How would that work in this case, the code need to compile? I mean, even
if you can get the syntax of a function, process it correctly and
generate SQL from it, the function still need to compile.
--
/Jacob Carlborg
More information about the Digitalmars-d-announce
mailing list