version(number) is completely useless
Mike Parker
aldacron at gmail.com
Fri Jul 22 15:26:55 UTC 2022
On Friday, 22 July 2022 at 13:36:37 UTC, Hipreme wrote:
> I'm thinking about newer versions with incremental additions.
> When I was looking into directx-d bindings, most of newer
> version depends on older version unless they change its major.
> The same thing could be applied to:
>
> ```d
> version(SDL.2.5.5)
> ...
> version(SDL.2.5.0) //Ok
> version(SDL.2.4) //not ok
> ```
And then you're baking a library versioning scheme into the
language. Not sure about that.
More information about the Digitalmars-d
mailing list