#How does one determine if something will or will not be executed at comptime?
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
Can I force an expression to be executed at comptime, and error if it is not possible?
comptime expr will run at comptime or compiler error
ok that's perfect
so if (comptime myFunction()) { ... }
there are also comptime blocks
comptime {
// this must be comptime or error
}