julia> macro testy()
args=[:T,:U,:M]
code = :(foreach(a->println(typeof(a)),$args))
quote
macro qq($(args...))
$code |>esc
end
end |> esc
end
@testy (macro with 1 method)
julia> @testy
@qq (macro with 1 method)
julia> @qq Int Int Int
Symbol
Symbol
Symbol
I want them to print DataType instead of Symbol, that means those args should be evaluated within macro with $.
How can I do that?
Thanks