# HG changeset patch # User aziz # Date 1187771580 0 # Node ID 268d680d527504253fdfe2ce4088333d4fe2da14 # Parent fa8ce2c50a11a9f8bd80951527d56b972af7bea5 - Moved Pad template to the top. diff -r fa8ce2c50a11 -r 268d680d5275 trunk/src/dil/Settings.d --- a/trunk/src/dil/Settings.d Wed Aug 22 07:12:04 2007 +0000 +++ b/trunk/src/dil/Settings.d Wed Aug 22 08:33:00 2007 +0000 @@ -7,17 +7,6 @@ import dil.Parser, dil.SyntaxTree, dil.Declarations, dil.Expressions; import std.metastrings; -version(D2) -{ - const VERSION_MAJOR = 2; - const VERSION_MINOR = 0; -} -else -{ - const VERSION_MAJOR = 1; - const VERSION_MINOR = 0; -} - template Pad(char[] str, uint amount) { static if (str.length >= amount) @@ -31,6 +20,17 @@ const char[] Pad = Pad!(ToString!(num), amount); } +version(D2) +{ + const VERSION_MAJOR = 2; + const VERSION_MINOR = 0; +} +else +{ + const VERSION_MAJOR = 1; + const VERSION_MINOR = 0; +} + const string VERSION = Format!("%s.%s", VERSION_MAJOR, Pad!(VERSION_MINOR, 3)); const COMPILED_WITH = __VENDOR__;