What's the D way of application version numbers?

Meta jared771 at gmail.com
Mon Jan 13 05:13:26 PST 2014


On Monday, 13 January 2014 at 11:39:02 UTC, Russel Winder wrote:
> immutable auto versionNumber = strip(import("VERSION"));

The "auto" doesn't do anything in this case, as immutable is a 
storage class and hence implies auto. It might be better to write:

static immutable versionNumber = ...


More information about the Digitalmars-d-learn mailing list