Is there a way to make a function parameter accept only values that can be checked at compile time?

rempas rempas at tutanota.com
Wed Dec 29 08:56:47 UTC 2021


On Tuesday, 28 December 2021 at 22:26:33 UTC, max haughton wrote:
> Why do you need this? What's wrong with a normal branch in this 
> case.

Runtime performance. I want the value to get checked at compile 
time and use "static if" with it


More information about the Digitalmars-d-learn mailing list