top | item 45854874

(no title)

jhgb | 3 months ago

But Zig doesn't need a keyword to trigger it either? If it's possible at all, it will be done. The keyword should just prevent run-time evaluation. (Unless I grossly misunderstood something.)

discuss

order

WalterBright|3 months ago

I'm no expert on Zig, but "comptime" is the keyword to trigger it.

jhgb|3 months ago

I'm pretty sure the "comptime" keyword only forces you to provide an argument constant at compile time for that particular parameter. It doesn't trigger the compile time evaluation.