If you have a generic compile-time parser, you can use it to parse your favorite language at compile-time and generate necessary D code for it. Example: You have a .sql file with a very large and complicated query, involving tons of joins. You parse the .sql file at compile-time and generate respective api calls for your favorite database system, making it statically known, precompiled and extremely fast.
On Wed, Nov 2, 2011 at 1:19 PM, Marco Leise <marco.le...@gmx.de> wrote: > Am 25.10.2011, 08:20 Uhr, schrieb Gor Gyolchanyan > <gor.f.gyolchan...@gmail.com>: > >> [...] then you could easily make a parser for your favourite >> language and interpret it at compile-time to generate D code. > > I don't get that one ;) >