I’m back with another question: Can I pass in a function as a comptime parameter? I don’t mean a function pointer, just a function.
Can I do something equivalent to this?
pub fn myFunction() void {}
pub fn myComptimeFunction(comptime function: ???) void {
// Call the function here:
function();
}
pub fn main() void {
myComptimeFunction(myFunction);
}
Is what I’m trying to do effectively the same as just passing the function as a function pointer? Or would there be a difference?