version(number) is completely useless
Walter Bright
newshound2 at digitalmars.com
Fri Jul 29 01:04:42 UTC 2022
On 7/28/2022 7:57 AM, Andrey Zherikov wrote:
> Did I get you right that you discourage using `static if` for versioning the
> code (according to [this
> post](https://forum.dlang.org/post/tbair7$2ltc$1@digitalmars.com)) with an
> exception for `static if(__VERSION__ ...)`?
Yes, you did.
Mainly, because the compiler doesn't generate a predefined version for every
change, which is impractical.
Frankly, what you're trying to do is hopeless, hence the suggestion to simply
pick a minimum __VERSION__ to support.
More information about the Digitalmars-d
mailing list