Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VERSION file #1429

Merged
merged 1 commit into from Jan 3, 2013
Merged

Add VERSION file #1429

merged 1 commit into from Jan 3, 2013

Conversation

andralex
Copy link
Member

@andralex andralex commented Jan 3, 2013

This file dictates the current version. All projects needing the version can fetch it from here.

WalterBright added a commit that referenced this pull request Jan 3, 2013
@WalterBright WalterBright merged commit 80e1415 into dlang:master Jan 3, 2013
@yebblies
Copy link
Member

yebblies commented Jan 3, 2013

@andralex Not to doubt you... but why?

@andralex
Copy link
Member Author

andralex commented Jan 3, 2013

@yebblies why what?

@yebblies
Copy link
Member

yebblies commented Jan 3, 2013

I'm curious what this file is meant to be used for.

@andralex
Copy link
Member Author

andralex commented Jan 3, 2013

Oh I see. We have several points in the build process where the version number must appear in clear (including e.g. the download page and the documentation), not to mention the compiler proper. So far we did it all by hand, and of course things are forgotten (for example the download page accessed 2.060 for a couple of days after the release).

Having the version in one place will allow us a unique point of maintenance.

@ghost
Copy link

ghost commented Jan 3, 2013

Just a FYI for anyone unaware you can use __VERSION__ programmatically in D, e.g.:

static assert (__VERSION__ >= 2060, "Requires compiler 2.060 or newer");

This also works for GDC, and probably LDC too since it shares the same front-end. Also a good trick for build-tools:

rdmd --eval=write(__VERSION__)

But maybe the version file is still necessary for other tools.

@9rnsr
Copy link
Contributor

9rnsr commented Jan 12, 2013

I opened #1469 to use VERSION file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants