version(number) is completely useless
Kagamin
spam at here.lot
Thu Jul 21 08:20:18 UTC 2022
On Wednesday, 20 July 2022 at 18:34:49 UTC, Andrey Zherikov wrote:
> On Wednesday, 20 July 2022 at 18:29:28 UTC, Kagamin wrote:
>> On Wednesday, 20 July 2022 at 01:22:00 UTC, Andrey Zherikov
>> wrote:
>>> I actually have a question since this topic is brought up:
>>> What is conceptual difference between `version(FOO)` and
>>> `static if(FOO)`?
>>
>> `version` is faster
>
> Do you have performance benchmark to share?
`static if` can evaluate arbitrarily complex code, it has no
upper complexity bound.
More information about the Digitalmars-d
mailing list