Good examples of version() algebra in real code

Basile B. b2.temp at gmx.com
Tue May 23 10:10:16 UTC 2023


On Tuesday, 23 May 2023 at 10:01:37 UTC, Basile B. wrote:
> On Sunday, 21 May 2023 at 18:43:32 UTC, Dennis wrote:
> [...]
>
> One thing that is not mentioned is the grammar of version 
> algebra...what would be allowed ? Do we want things like
>
>     version(mixin(someCtfeCall(())
>
> How would be handled the fact that
>
>     enum BigEndian = 0.123;
>
> is ATM legal, i.e identifiers can be both expressions and 
> sealed version identifiers ?
>
> There are already bugs caused by the fact that `static if`s can 
> introduce `version`s... it's probably not worth introducing 
> version algebra until those get fixed.

image for the children : https://imgflip.com/i/7mropf


More information about the Digitalmars-d mailing list