[std.database] at compile time

foobar foo at bar.com
Fri Oct 14 03:19:20 PDT 2011


Has anyone looked at Nemerle's design for this? 
They have an SQL macro which allows to write SQL such as:

var employName = "FooBar"
SQL (DBconn, "select * from employees where name = $employName");

what that supposed to do is bind the variable(s) and it also validates the sql query with the database. This is all done at compile-time. 

My understanding is that D's compile-time features are powerful enough to implement this. 



More information about the Digitalmars-d mailing list