version(number) is completely useless

Mike Parker aldacron at gmail.com
Fri Jul 22 10:43:03 UTC 2022


On Friday, 22 July 2022 at 10:36:39 UTC, Hipreme wrote:

> ```d
> version(SDL.2.5) //Ok
> version(SDL.2.4) //Ok
> version(SDL.2.3) //Ok
> version(SDL.2.2) //Ok
> version(SDL.2.1) //Ok
> version(SDL.2.0) //Ok
> version(SDL.1.9) //Not ok
> ```
>
> It would basically just insert all possible versions when 
> defining with a number like that, I'm not expecting to use 
> those kind of operators with `version`. I

Then what happens when you *don't* want old versions together 
with the new one?



More information about the Digitalmars-d mailing list