On 2012-11-23 12:38, Gor Gyolchanyan wrote:
2. I can't use static if because: 2.1. I can't define FOOBAR from outside of the package this code will be in. 2.2. I can't include the definition of FOOBAR into the package (like config.d) and expect it to be changed as necessary, because the package encapsulation will be broken.
What about using version identifiers to set constants and the use static-if? Something like this:
https://github.com/jacob-carlborg/dvm/blob/d1/dvm/util/Version.d -- /Jacob Carlborg