version(number) is completely useless
Walter Bright
newshound2 at digitalmars.com
Wed Jul 27 17:16:30 UTC 2022
On 7/27/2022 7:24 AM, Andrey Zherikov wrote:
> What's your recommendation about how I should check for a specific
> feature/bugfix? Should I use `static if(__VERSION__ ...)`, `static
> if(__traits(compiles, { ... }))` or something else?
__VERSION__ is certainly more convenient.
Though, since upgrades to the compiler are free, a simpler strategy would be to
just require a __VERSION__ past a certain point.
More information about the Digitalmars-d
mailing list