compile time configurations
Uranuz via Digitalmars-d
digitalmars-d at puremagic.com
Sat Oct 11 02:07:41 PDT 2014
> I did something similar a while back. It parsed a .ini that
> contained default values and created a statically typed runtime
> parser for the actual .ini file from it. It was fun, to see
> that you can do that with D.
Yes. I use import('filename') to configure my application too. I
have config.json, where I store standard application's file
paths, options and so on. It's very handy compiler's feature
More information about the Digitalmars-d
mailing list