Macro Question where I can't do the proper substition

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

maybe this?

macro qq2(arguments...)
    quote
        for x in $arguments
            println(typeof(eval(x)))
        end
    end 
end 

Nope that s not gonna work for me, I am looking for a syntactic way of writing

:($ x)

I guess… where $ is not evaluated until I place it.

maybe try $$ ?