On Sunday, 12 January 2014 at 18:36:19 UTC, Russel Winder wrote:
With C++ and Python, it is idiomatic to put the application version number in a separate file that can then be processedby the build system.
That's the way I do it in D too:
file VERSION says "1.0"
dmd -J. myfile.d
enum version = import("VERSION");
// use it now like any other string in D
