What's the D way of application version numbers?
Adam D. Ruppe
destructionator at gmail.com
Sun Jan 12 11:11:11 PST 2014
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 processed
> by 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
More information about the Digitalmars-d-learn
mailing list