Here,Metaprogramming · The Julia Language,
it says " generated function cannot call any method that was not defined prior to the definition of the generated function itself."
Is there a way to go beyond this? like including the later defined methods in the dispatch without using them in the generated expression.
Is this related to world age problem? And if so why Base.invokelast doesn’t work.
That can never be right as that function isn’t valid to use (outside of the compiler itself), but I can’t speak to the quality of any particular implementation. I’m just saying what you would need to implement.