Counting at compile-time

DLearner bmqazwsx123 at gmail.com
Sun Jan 26 18:56:30 UTC 2025


On Sunday, 26 January 2025 at 16:43:23 UTC, Bradley Chatha wrote:
> On Sunday, 26 January 2025 at 15:42:44 UTC, DLearner wrote:
>> But how to get that value into Count?
>
> It's hard to say what would exactly fit your use case since 
> this is just a minimal example, so it's hard to gauge what 
> other restrictions and inputs exists, but if your logic is a 
> bit more complex then CTFE (Compile Time Function Execution) 
> might be a viable option:
[...]
> Without additional context it's hard to give a concrete 
> suggestion though, but I hope this helps.

Thank you.


More information about the Digitalmars-d-learn mailing list