hi,
macros are pretty cool !
there are some things I didn't find out until now:
Or another thing I am thinking of: In a first call to a macro I pass the name of a database. This macro generates some structural information from the database structure. Later on I pass a query inside a string to a macro and this macro checks if the query is sane and produces a compile time type checked query. Now when I start the app, the actual database structure is checked against the structure at compile time - if they are compatible the app runs, otherwise it fails with some message (or updates the database to an actual structure).
cheers, Adrian.
The compiler should produce an "instantiation from here" message for macro invokations
I think it is a bug then. But I will check before I create an issue.
use var x {.compileTime.}: TTable[x, y]
oh stupid me, its obvious - I tried {.global.} ;-)
An ORM that parses an SQL
I am not thinking of pure SQL at the moment, because we have our own database server (object relational) with a slightly different query language. This database server is currently written in Delphi, but I started already to port it to nimrod and this version will be open source (but I am unsure about which license it will be at the end - most likely GPL + Commercial).
This database server is currently written in Delphi, but I started already to port it to nimrod and this version will be open source
Excellent news. There is nothing better to promote a language than production software written in it. :D
and it's fast.