Can you avoid using Base.invokelatest in this example?

A post was split to a new topic: How can a macro create functions that are handled at compile time?