dmd git master version

Steven Schveighoffer schveiguy at gmail.com
Wed Oct 12 22:26:22 UTC 2022


On 10/12/22 5:46 PM, H. S. Teoh wrote:
> Including the git commit hash in the version number is generally a good
> idea IMO.  But what strikes me as odd is keying the official release
> version number on a git tag -- to the point that even __VERSION__
> reports 2098L in spite of the compiler being functionally already
> 2.100.2.  This leads to potentially "interesting" effects when this
> compiler is then used to compile code that checks __VERSION__ with
> static if...  (This makes the 2.100.2 compiler insist that it's 2.098,
> and even convince itself that it's 2.098, but functionally it's actually
> 2.100.2.)

Yeah, that is odd.

-Steve


More information about the Digitalmars-d mailing list